Command
class Command extends Command (View source)
Methods
Create a new console command instance.
Run the console command.
Call another console command.
Call another console command silently.
Get the value of a command argument.
Get the value of a command option.
Confirm a question with the user.
Prompt the user for input.
Prompt the user for input with auto completion.
Prompt the user for input with auto completion.
Prompt the user for input but hide the answer from the console.
Give the user a single choice from an array of answers.
Write a string as information output.
Write a string as standard output.
Write a string as comment output.
Write a string as question output.
Write a string as error output.
Write a string as warning output.
Get the output implementation.
Get the Laravel application instance.
Details
at line line 179
int
call(
string $command,
array $arguments = array())
Call another console command.
at line line 195
int
callSilent(
string $command,
array $arguments = array())
Call another console command silently.
at line line 241
bool
confirm(
string $question,
bool $default = false)
Confirm a question with the user.
at line line 266
string
anticipate(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
at line line 279
string
askWithCompletion(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
at line line 295
string
secret(
string $question,
bool $fallback = true)
Prompt the user for input but hide the answer from the console.
at line line 314
string
choice(
string $question,
array $choices,
string $default = null,
mixed $attempts = null,
bool $multiple = null)
Give the user a single choice from an array of answers.
at line line 331
void
table(
array $headers,
Arrayable|array $rows,
string $style = 'default')
Format input to textual table.
at line line 349
void
info(
string $string,
null|int|string $verbosity = null)
Write a string as information output.
at line line 362
void
line(
string $string,
string $style = null,
null|int|string $verbosity = null)
Write a string as standard output.
at line line 376
void
comment(
string $string,
null|int|string $verbosity = null)
Write a string as comment output.
at line line 388
void
question(
string $string,
null|int|string $verbosity = null)
Write a string as question output.
at line line 400
void
error(
string $string,
null|int|string $verbosity = null)
Write a string as error output.
at line line 412
void
warn(
string $string,
null|int|string $verbosity = null)
Write a string as warning output.