SeedCommand
class SeedCommand extends Command (View source)
Traits
Methods
Call another console command silently.
Confirm a question with the user.
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.
Format input to textual table.
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.
Confirm before proceeding with the action.
Execute the console command.
Details
at line line 42
void
__construct(
ConnectionResolverInterface $resolver)
Create a new database seed 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.
void
line(
string $string,
string $style = null,
null|int|string $verbosity = null)
Write a string as standard output.
void
question(
string $string,
null|int|string $verbosity = null)
Write a string as question output.
in ConfirmableTrait at line line 16
bool
confirmToProceed(
string $warning = 'Application In Production!',
Closure|bool|null $callback = null)
Confirm before proceeding with the action.