设置超级用户
This commit is contained in:
parent
c84ff9fa86
commit
c273d52f54
|
|
@ -25,6 +25,8 @@ class AuthServiceProvider extends ServiceProvider
|
|||
{
|
||||
$this->registerPolicies();
|
||||
|
||||
//
|
||||
Gate::before(function ($user, $ability) {
|
||||
return $user->id == 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue