trait CanValidateInput (View source)

deprecated Use `\Filament\Support\Commands\Concerns\CanValidateInput` instead.

Traits

Methods

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

No description

string
validateInput(Closure $callback, 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 $callback, string $field, array $rules, Closure|null $onError = null)

No description

Parameters

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

Return Value

string