Application
class Application extends Application implements Application (View source)
Properties
protected Container | $laravel | The Laravel application instance. | |
protected BufferedOutput | $lastOutput | The output from the previous command. |
Methods
void | __construct(Container $laravel, Dispatcher $events, string $version) Create a new Artisan console application. | |
int | call(string $command, array $parameters = []) Run an Artisan console command by name. | |
string | output() Get the output for the last run command. | |
Command | add(Command $command) Add a command to the console. | |
Command | addToParent(Command $command) Add the command to the parent instance. | |
Command | resolve(string $command) Add a command, resolving through the application. | |
$this | resolveCommands(array|mixed $commands) Resolve an array of commands through the application. | |
InputDefinition | getDefaultInputDefinition() Get the default input definitions for the applications. | |
InputOption | getEnvironmentOption() Get the global environment option for the definition. | |
Application | getLaravel() Get the Laravel application instance. |
Details
void __construct(Container $laravel, Dispatcher $events, string $version)
Create a new Artisan console application.
int call(string $command, array $parameters = [])
Run an Artisan console command by name.
string output()
Get the output for the last run command.
Command add(Command $command)
Add a command to the console.
protected Command addToParent(Command $command)
Add the command to the parent instance.
Command resolve(string $command)
Add a command, resolving through the application.
$this resolveCommands(array|mixed $commands)
Resolve an array of commands through the application.
protected InputDefinition getDefaultInputDefinition()
Get the default input definitions for the applications.
This is used to add the --env option to every available command.
protected InputOption getEnvironmentOption()
Get the global environment option for the definition.
Application getLaravel()
Get the Laravel application instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Console/Application.html