code: public function register()
      {
          $this->app->singleton('toastr', function ($app) {
              return new Toastr($app->session, $app->config);
          });
      }
docs: Register the application services.
  
  @return void