trait CanValidateInput (View source)

deprecated Please refactor to use Laravel Prompts.

Methods

string
askRequired(string $question, string $field, string|null $default = null)

No description

string
validateInput(Closure $askUsing, string $field, array $rules, Closure|null $onError = null)

No description

Details

protected string askRequired(string $question, string $field, string|null $default = null)

No description

Parameters

string $question
string $field
string|null $default

Return Value

string

protected string validateInput(Closure $askUsing, string $field, array $rules, Closure|null $onError = null)

No description

Parameters

Closure $askUsing
string $field
array $rules
Closure|null $onError

Return Value

string