Collective\Annotations\AnnotationFinder::getScannedRoutesPath PHP Method

getScannedRoutesPath() public method

Get the path to the scanned routes file.
public getScannedRoutesPath ( ) : string
return string
    public function getScannedRoutesPath()
    {
        return $this->app['path.storage'] . '/framework/routes.scanned.php';
    }

Usage Example

 /**
  * Load the scanned application routes.
  *
  * @return void
  */
 protected function loadScannedRoutes()
 {
     $this->app->booted(function () {
         $router = $this->app['Illuminate\\Contracts\\Routing\\Registrar'];
         require $this->finder->getScannedRoutesPath();
     });
 }