class
Illuminate
/
Foundation
/
Console
/
ServeCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
ServeCommand
Extends
Properties
protected
$name string
The console command name.
Default: 'serve'
protected
$description string
The console command description.
Default: 'Serve the application on the PHP development server'
protected
$portOffset int
The current port offset.
Methods
public
handle ( ) : int
Execute the console command.
protected
startProcess ( $hasEnvironment ) : Symfony\...\Process
Start a new server process.
Parameters
- $hasEnvironment bool
protected
serverCommand ( ) : array
Get the full server command.
protected
host ( ) : string
Get the host for the command.
protected
port ( ) : string
Get the port for the command.
protected
getHostAndPort ( ) : array
Get the host and port from the host option string.
protected
canTryAnotherPort ( ) : bool
Check if the command has reached its max amount of port tries.
protected
getOptions ( ) : array
Get the console command options.