GeneratorCommand
class GeneratorCommand extends Command (View source)
Methods
void
int
callSilent(
string $command,
array $arguments = array())
Call another console command silently.
from Command
bool
confirm(
string $question,
bool $default = false)
Confirm a question with the user.
from Command
string
anticipate(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
from Command
string
askWithCompletion(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
from Command
string
secret(
string $question,
bool $fallback = true)
Prompt the user for input but hide the answer from the console.
from Command
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.
from Command
void
table(
array $headers,
Arrayable|array $rows,
string $style = 'default')
Format input to textual table.
from Command
bool|null
fire()
Execute the console command.
Details
at line line 31
void
__construct(
Filesystem $files)
Create a new controller creator command instance.
string
anticipate(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
string
askWithCompletion(
string $question,
array $choices,
string $default = null)
Prompt the user for input with auto completion.
string
secret(
string $question,
bool $fallback = true)
Prompt the user for input but hide the answer from the console.
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.
void
table(
array $headers,
Arrayable|array $rows,
string $style = 'default')
Format input to textual table.