*/ protected $policies = [ // ]; /** * Register any authentication / authorization services. */ public function boot(): void { // ... Gate::define('access-admin-panel', function ($user) { return $user->is_admin; }); } }