src/Providers/ToastrServiceProvider.php
public function register()
    {
        $this->app->singleton('toastr', function ($app) {
            return new Toastr($app->session, $app->config);
        });
    }
public function register()
    {
        $this->app->singleton('toastr', function ($app) {
            return new Toastr($app->session, $app->config);
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'toastr' , function ( $ app ) { return new Toastr ( $ app -> session , $ app -> config ) ; } ) ; }
Register the application services.

@return void
Register the application services .