*/ protected $policies = [ // ]; /** * Register any authentication / authorization services. */ public function boot(): void { Gate::before(function ($user, $ability) { return $user->hasRole('ADMIN') ? true : null; }); } }