管理者権限ゲートの定義

This commit is contained in:
shibafu 2019-02-11 14:50:55 +09:00
parent 82ccd623a6
commit f5fab4b3c1
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ class AuthServiceProvider extends ServiceProvider
{ {
$this->registerPolicies(); $this->registerPolicies();
// Gate::define('admin', function ($user) {
return $user->is_admin;
});
} }
} }