On this page
Rule deprecated
interface Rule (View source)
deprecated
see ValidationRuleMethods
bool | passes(string $attribute, mixed $value) Determine if the validation rule passes. |
|
string|array | message() Get the validation error message. |
Details
bool passes(string $attribute, mixed $value)
Determine if the validation rule passes.
string|array message()
Get the validation error message.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Contracts/Validation/Rule.html