. */ namespace Poniverse\Ponyfm\Providers; use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; use Poniverse\Ponyfm\Library\Notifications\NotificationManager; class NotificationServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { // } /** * Register the application services. * * @return void */ public function register() { $this->app->singleton('notification', function (Application $app) { return new NotificationManager(); }); } }