interface InvokableRule (View source)

deprecated see ValidationRule

Methods

void
__invoke(string $attribute, mixed $value, Closure $fail)

Run the validation rule.

Details

void __invoke(string $attribute, mixed $value, Closure $fail)

Run the validation rule.

Parameters

string $attribute
mixed $value
Closure $fail

Return Value

void