app->singleton(NotificationTypeRegistry::class); $this->app->singleton(Notifier::class); $this->app->singleton(NotificationPreferences::class); if ($this->app->runningInConsole()) { $this->commands([ Console\PurgeNotificationsCommand::class, ]); } } public function boot(): void { Gate::policy(InAppNotification::class, InAppNotificationPolicy::class); } }