Break attribute validation #49016
Unanswered
lanrenbulan
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Isn't that already possible? https://laravel.com/docs/10.x/validation#stopping-on-first-validation-failure And if not, what are you suggesting compared to the current behavior of the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Each attribute can have multiple rules and can break before any rule.
We can specify the location of
bail
. If there is an error before, the verification will not continue. This can reduce one DB query.Beta Was this translation helpful? Give feedback.
All reactions