InvokableRule

interface InvokableRule (View source)

Methods

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

Run the validation rule.

Details

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

Run the validation rule.

Parameters

string $attribute
mixed $value
$fail

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Contracts/Validation/InvokableRule.html