1

what: i want to assign all permissions for each guard'

i have three guards unit, pack and troop, each has the same permissions assigned create, edit, delete, and view, for a set feature.

I was using this to set all permissions when only using a single guard (web).

Role::create(['name' => 'super-admin'])
            ->givePermissionTo(Permission::all());

how do i create a super admin with all permissions from each guard.

apokryfos
  • 38,771
  • 9
  • 70
  • 114
DEVeasey
  • 41
  • 2

0 Answers0