设置超级用户

This commit is contained in:
Edward Yang 2022-08-09 00:08:38 +08:00
parent c84ff9fa86
commit c273d52f54
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ class AuthServiceProvider extends ServiceProvider
{
$this->registerPolicies();
//
Gate::before(function ($user, $ability) {
return $user->id == 1;
});
}
}