InvokableValidationRule
class InvokableValidationRule implements Rule, ValidatorAwareRule
Traits
Properties
| protected Closure | $destructor | The callback to call when the object destructs. |
from CreatesPotentiallyTranslatedStrings |
| protected bool | $failed | Indicates if the validation invokable failed. |
|
| protected array | $messages | The validation error messages. |
|
| protected Validator|null | $validator | The current validator. |
|
| protected array | $data | The data under validation. |
Methods
pendingPotentiallyTranslatedString(string $attribute, string|null $message)
Create a pending potentially translated string.
__construct(InvokableRule|ValidationRule $invokable)
Create a new explicit Invokable validation rule.
static InvokableValidationRule
make(InvokableRule|ValidationRule $invokable)
Create a new implicit or explicit Invokable validation rule.
Details
in
CreatesPotentiallyTranslatedStrings at line 15
protected PotentiallyTranslatedString
pendingPotentiallyTranslatedString(string $attribute, string|null $message)
Create a pending potentially translated string.
at line 44
protected
__construct(InvokableRule|ValidationRule $invokable)
Create a new explicit Invokable validation rule.
in
CreatesPotentiallyTranslatedStrings at line 40
__destruct()
Handle the object's destruction.
at line 52
static InvokableValidationRule
make(InvokableRule|ValidationRule $invokable)
Create a new implicit or explicit Invokable validation rule.