ConfiguresPrompts
trait ConfiguresPrompts (View source)
Methods
void
configurePrompts(InputInterface $input)
Configure the prompt fallbacks.
promptUntilValid($prompt, $required, $validate)
No description
?string
validatePrompt(mixed $value, mixed $rules)
Validate the given prompt value using the validator.
getPromptValidatorInstance(mixed $field, mixed $value, mixed $rules, array $messages = [], array $attributes = [])
Get the validator instance that should be used to validate prompts.
array<string,string>
validationMessages()
Get the validation messages that should be used during prompt validation.
array<string,string>
validationAttributes()
Get the validation attributes that should be used during prompt validation.
void
restorePrompts()
Restore the prompts output.
Details
protected void
configurePrompts(InputInterface $input)
Configure the prompt fallbacks.
protected
promptUntilValid($prompt, $required, $validate)
No description
protected ?string
validatePrompt(mixed $value, mixed $rules)
Validate the given prompt value using the validator.
protected Validator
getPromptValidatorInstance(mixed $field, mixed $value, mixed $rules, array $messages = [], array $attributes = [])
Get the validator instance that should be used to validate prompts.
protected array<string,string>
validationMessages()
Get the validation messages that should be used during prompt validation.
protected array<string,string>
validationAttributes()
Get the validation attributes that should be used during prompt validation.
protected void
restorePrompts()
Restore the prompts output.