laravel / 10 / api / 10.x / illuminate / contracts / validation / invokablerule.html

InvokableRule deprecated

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

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