@php $selected = old('permissions', $role?->permissions->pluck('name')->all() ?? []); @endphp {{-- Permissions are grouped by the module that owns them, derived from the name prefix. A newly installed module's permissions therefore appear here on their own, with no registry for anyone to forget to update. --}}