*/ protected $policies = [ Tenant::class => TenantPolicy::class, PurchaseHistory::class => PurchaseHistoryPolicy::class, ]; /** * Register any authentication / authorization services. */ public function boot(): void { $this->registerPolicies(); VerifyEmail::createUrlUsing(function (User $notifiable): string { $relativeUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes((int) config('auth.verification.expire', 60)), [ 'id' => $notifiable->getKey(), 'hash' => sha1($notifiable->getEmailForVerification()), ], absolute: false, ); return URL::to($relativeUrl); }); Gate::before(function (User $user): ?bool { return $user->role === 'super_admin' ? true : null; }); } }