Support the ongoing development of Laravel.io →
Laravel Validation
Last updated by @tvbeek 1 month ago.
0

Hello @prithvidev1

I think you need to create some custom logic to get it working, I suspect you could start with the Rule:forEach as described here: https://laravel.com/docs/9.x/validation#accessing-nested-array...

sidenote: I have updated your post to make the code block more readable.

1

Thank you, for coming up with the suggestion. I believe Rule:forEach is not available in previous versions of laravel. I tried to use Rule::when as well which also is absent in my laravel version.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.