trait CanBeValidated (View source)

Properties

protected array-key[] $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(mixed $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(mixed $input)

No description

Parameters

mixed $input

Return Value

void

string getValidationAttribute()

No description

Return Value

string