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'
protected

$files Filesystem

The filesystem instance.

Default: null

Methods

public

__construct ( Filesystem $files ) : void

Create a new route command instance.

Parameters

public

handle ( ) : void

Execute the console command.

protected

getFreshApplicationRoutes ( ) : RouteCollection

Boot a fresh copy of the application and get the routes.

protected

getFreshApplication ( ) : Application

Get a fresh application instance.

protected

buildRouteCacheFile ( RouteCollection $routes ) : string

Build the route cache file.

Parameters