ConfiguresPrompts
trait ConfiguresPrompts
Methods
Configure the prompt fallbacks.
Prompt the user until the given validation callback passes.
Validate the given prompt value using the validator.
Get the validator instance that should be used to validate prompts.
Get the validation messages that should be used during prompt validation.
Get the validation attributes that should be used during prompt validation.
Details
at line 34
protected void
configurePrompts(InputInterface $input)
Configure the prompt fallbacks.
at line 185
protected PResult
promptUntilValid(PResult $prompt, bool|string $required, null|PResult): mixed $validate)
Prompt the user until the given validation callback passes.
at line 252
protected ?string
validatePrompt(mixed $value, mixed $rules)
Validate the given prompt value using the validator.
at line 287
protected Validator
getPromptValidatorInstance(mixed $field, mixed $value, mixed $rules, array $messages = [], array $attributes = [])
Get the validator instance that should be used to validate prompts.
at line 302
protected array
validationMessages()
Get the validation messages that should be used during prompt validation.
at line 312
protected array
validationAttributes()
Get the validation attributes that should be used during prompt validation.