protected function syncAdminRole()
    {
        /** @var \Arcanesoft\Auth\Models\Role $admin */
        $admin = Role::admin()->first();
        $admin->permissions()->sync(
            Permission::all()->pluck('id')->toArray()
        );
    }
protected function syncAdminRole()
    {
        /** @var \Arcanesoft\Auth\Models\Role $admin */
        $admin = Role::admin()->first();
        $admin->permissions()->sync(
            Permission::all()->pluck('id')->toArray()
        );
    }
protected function syncAdminRole ( ) { /** @var \Arcanesoft\Auth\Models\Role $admin */ $ admin = Role :: admin ( ) -> first ( ) ; $ admin -> permissions ( ) -> sync ( Permission :: all ( ) -> pluck ( 'id' ) -> toArray ( ) ) ; }
Sync the admin role with all permissions.
Sync the admin role with all permissions .