src/Core/Console/RouteCacheCommand.php
protected function getFreshApplicationRoutes()
    {
        return tap($this->getFreshApplication()['router']->getRoutes(), function ($routes) {
            /** @var RouteCollection $routes */
            $routes->refreshNameLookups();
            $routes->refreshActionLookups();
        });
    }
protected function getFreshApplicationRoutes()
    {
        return tap($this->getFreshApplication()['router']->getRoutes(), function ($routes) {
            /** @var RouteCollection $routes */
            $routes->refreshNameLookups();
            $routes->refreshActionLookups();
        });
    }
protected function getFreshApplicationRoutes ( ) { return tap ( $ this -> getFreshApplication ( ) [ 'router' ] -> getRoutes ( ) , function ( $ routes ) { /** @var RouteCollection $routes */ $ routes -> refreshNameLookups ( ) ; $ routes -> refreshActionLookups ( ) ; } ) ; }
Boot a fresh copy of the application and retrieve its routes.

@return RouteCollection
Boot a fresh copy of the application and retrieve its routes .