public function registerDispatcher()
    {
        $this->app->singleton('ajax.dispatcher', function ($app) {
            return new Dispatcher(
                $app['ajaxes.collection'],
                $app['router'],
                $app
            );
        });

        $this->app->alias('ajax.dispatcher', Dispatcher::class);
    }
public function registerDispatcher()
    {
        $this->app->singleton('ajax.dispatcher', function ($app) {
            return new Dispatcher(
                $app['ajaxes.collection'],
                $app['router'],
                $app
            );
        });

        $this->app->alias('ajax.dispatcher', Dispatcher::class);
    }
public function registerDispatcher ( ) { $ this -> app -> singleton ( 'ajax.dispatcher' , function ( $ app ) { return new Dispatcher ( $ app [ 'ajaxes.collection' ] , $ app [ 'router' ] , $ app ) ; } ) ; $ this -> app -> alias ( 'ajax.dispatcher' , Dispatcher :: class ) ; }
Register AJAX actions dispatcher.

@return void
Register AJAX actions dispatcher .