class
Illuminate
/
Foundation
/
Console
/
RouteCacheCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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