ConfiguresPrompts
trait ConfiguresPrompts (View source)
Methods
void
configurePrompts(InputInterface $input)
Configure the prompt fallbacks.
mixed
promptUntilValid(Closure $prompt, bool|string $required, Closure|null $validate)
Prompt the user until the given validation callback passes.
void
restorePrompts()
Restore the prompts output.
Details
protected void
configurePrompts(InputInterface $input)
Configure the prompt fallbacks.
protected mixed
promptUntilValid(Closure $prompt, bool|string $required, Closure|null $validate)
Prompt the user until the given validation callback passes.
protected void
restorePrompts()
Restore the prompts output.