On this page
InvokableValidationRule
class InvokableValidationRule implements Rule, ValidatorAwareRule (View source)
Properties
protected ValidationRule|InvokableRule | $invokable | The invokable that validates the attribute. |
|
protected bool | $failed | Indicates if the validation invokable failed. |
|
protected array | $messages | The validation error messages. |
|
protected Validator | $validator | The current validator. |
|
protected array | $data | The data under validation. |
Methods
void | __construct(InvokableRule $invokable) Create a new explicit Invokable validation rule. |
|
static Rule | make(ValidationRule|InvokableRule $invokable) Create a new implicit or explicit Invokable validation rule. |
Details
protected void __construct(InvokableRule $invokable)
Create a new explicit Invokable validation rule.
static Rule make(ValidationRule|InvokableRule $invokable)
Create a new implicit or explicit Invokable validation rule.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Validation/InvokableValidationRule.html