'developer' ]); $admin = Role::where('name', 'admin')->first(); Permission::create(['name' => 'admin.settings.view']); Permission::create(['name' => 'admin.settings.edit']); $developer->givePermissionTo('admin.developertools.use'); $admin->givePermissionTo('admin.settings.view'); $admin->givePermissionTo('admin.settings.edit'); } }