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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.