class
Illuminate
/
Foundation
/
Console
/
RouteCacheCommand
RouteCacheCommand
Extends
Properties
protected
$name string
The console command name.
Default: 'route:cache'
protected
$description string
The console command description.
Default: 'Create a route cache file for faster route registration'
Methods
public
__construct ( Filesystem $files ) : void
Create a new route command instance.
Parameters
- $files Filesystem
public
handle ( ) : void
Execute the console command.
protected
getFreshApplicationRoutes ( ) : RouteCollection
Boot a fresh copy of the application and get the routes.
protected
buildRouteCacheFile ( RouteCollection $routes ) : string
Build the route cache file.
Parameters
- $routes RouteCollection