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

ValidationRule

interface ValidationRule (View source)

Methods

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

Run the validation rule.

Details

void validate(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/ValidationRule.html