SubjectPolicy::class, UserInterest::class => UserInterestPolicy::class, ]; /** * Register any authentication / authorization services. */ public function boot(): void { $this->registerPolicies(); Gate::before(function ($user, $ability) { if ($user->hasRole('superadmin')) { return true; } }); } }