showing validation errors on the same row in one #3431
Unanswered
Mahardika23
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can transform the failures array into anything you want. Perhaps using groupBy using a collection. |
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.
-
Is there any way to get all errors on the same row in one failure, instead of having 2 failures (validation error) for the same row?
for example i have a validation :
'name' => 'required|string',
'address => 'required|text'
if 1 row is not inputting both of those required data, i get 2 failures for the same row, is there any way for the same row to return an array of failures? instead of returning many failures?
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions