where('name', '超级管理员')->find(1); $permissions = Permission::query()->get(); $role->syncPermissions($permissions); $this->info('更新成功'); } }