FilamentF
Filamentβ€’8mo ago
aksl

Laravel permissions

I'm looking for the best way to manage the super admin role.
Currently in my User resource I have this :
Select::make('roles')
                            ->relationship('roles', 'name')
                            ->multiple()
                            ->preload()
                            ->searchable()


So a user who can modify roles can assign super_admin to everyone.
how would you make it so that only a super_admin sees the super_admin role?

Maybe you should disable it altogether?
thanks πŸ™‚
Was this page helpful?