RequiredUnless
class RequiredUnless implements Stringable (View source)
Properties
| Closure(): bool|bool | $condition | The condition that validates the attribute. |
Methods
__construct(Closure(): bool|bool|null $condition)
Create a new required validation rule based on a condition.
string
__toString()
Convert the rule to a validation string.
Details
__construct(Closure(): bool|bool|null $condition)
Create a new required validation rule based on a condition.
string
__toString()
Convert the rule to a validation string.
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.