class
Illuminate
/
Foundation
/
Console
/
DownCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
DownCommand
Extends
Properties
protected
$signature string
The console command signature.
Default: 'down {--redirect= : The path that users should be redirected to}
{--render= : The view that should be prerendered for display during maintenance mode}
{--retry= : The number of seconds after which the request may be retried}
{--refresh= : The number of seconds after which the browser may refresh}
{--secret= : The secret phrase that may be used to bypass maintenance mode}
{--status=503 : The status code that should be used when returning the maintenance mode response}'
protected
$description string
The console command description.
Default: 'Put the application into maintenance / demo mode'
Methods
public
handle ( ) : int
Execute the console command.
protected
getDownFilePayload ( ) : array
Get the payload to be placed in the "down" file.
protected
excludedPaths ( ) : array
Get the paths that should be excluded from maintenance mode.
protected
redirectPath ( ) : string
Get the path that users should be redirected to.
protected
prerenderView ( ) : string
Prerender the specified view so that it can be rendered even before loading Composer.
protected
getRetryTime ( ) : int|null
Get the number of seconds the client should wait before retrying their request.