class ClosureValidationRule implements Rule, ValidatorAwareRule (View source)
| CreatesPotentiallyTranslatedStrings |
| protected Closure | $destructor | The callback to call when the object destructs. | from CreatesPotentiallyTranslatedStrings |
| Closure | $callback | The callback that validates the attribute. | |
| bool | $failed | Indicates if the validation callback failed. | |
| array | $messages | The validation error messages. | |
| protected Validator | $validator | The current validator. |
| PotentiallyTranslatedString | pendingPotentiallyTranslatedString(string $attribute, string|null $message)
Create a pending potentially translated string. | from CreatesPotentiallyTranslatedStrings |
| void | __construct(Closure $callback)
Create a new Closure based validation rule. | |
| void | __destruct()
Handle the object's destruction. | from CreatesPotentiallyTranslatedStrings |
| bool | passes(string $attribute, mixed $value)
Determine if the validation rule passes. | |
| string|array | message()
Get the validation error messages. | |
| $this | setValidator(Validator $validator)
Set the current validator. |
Create a pending potentially translated string.
Create a new Closure based validation rule.
Handle the object's destruction.
Determine if the validation rule passes.
Get the validation error messages.
Set the current validator.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Validation/ClosureValidationRule.html