AnyOf
class AnyOf implements Rule, ValidatorAwareRule (View source)
Properties
| protected array | $rules | The rules to match against. |
|
| protected Validator | $validator | The validator performing the validation. |
Methods
__construct(array $rules)
Sets the validation rules to match against.
bool
passes(string $attribute, mixed $value)
Determine if the validation rule passes.
string|array
message()
Get the validation error messages.
$this
Details
__construct(array $rules)
Sets the validation rules to match against.
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.
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.