class Illuminate / Foundation / Console / RouteCacheCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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