where('name', '超级管理员')->first(); $permissions = app(PermissionService::class)->getPermissions(); $role->syncPermissions($permissions); $this->alert('root permissions fixed.'); } }