Support the ongoing development of Laravel.io →
Laravel Validation
Last updated by @tvbeek 6 months ago.
0
moderator

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

@prithvidev1 - How did you fix this issue? I am working on something similar. Please guide us.

0
moderator

@churas232 why do you link in this thread to this thread?

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2022 Laravel.io - All rights reserved.