trait CanBeValidated (View source)

Properties

protected array|Closure $rules
protected string|Closure|null $validationAttribute

Methods

rules(array|Closure $rules)

No description

validationAttribute(string|Closure|null $label)

No description

array
getRules()

No description

void
validate($input)

No description

string
getValidationAttribute()

No description

Details

CanBeValidated rules(array|Closure $rules)

No description

Parameters

array|Closure $rules

Return Value

CanBeValidated

CanBeValidated validationAttribute(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

CanBeValidated

array getRules()

No description

Return Value

array

void validate($input)

No description

Parameters

$input

Return Value

void

string getValidationAttribute()

No description

Return Value

string