public function registerRoutesCollection()
    {
        $this->app->singleton('routes.collection', function ($app) {
            return new RoutesCollection;
        });

        $this->app->alias('routes.collection', RoutesCollection::class);
    }
public function registerRoutesCollection()
    {
        $this->app->singleton('routes.collection', function ($app) {
            return new RoutesCollection;
        });

        $this->app->alias('routes.collection', RoutesCollection::class);
    }
public function registerRoutesCollection ( ) { $ this -> app -> singleton ( 'routes.collection' , function ( $ app ) { return new RoutesCollection ; } ) ; $ this -> app -> alias ( 'routes.collection' , RoutesCollection :: class ) ; }
Register collection of routes.

@return void
Register collection of routes .