. */ namespace App\Providers; use App\Library\Notifications\NotificationManager; use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; 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(); }); } }