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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Console/Concerns/ConfiguresPrompts.html