Support the ongoing development of Laravel.io →
Input Validation
Last updated 2 years ago.
0

Obviously you get the false every time as the dot notation for your input returns like a_list.0 when the rule you are creating is applied to a_list so it does not find the given key in your input. This behaviour looks a bit strange for me as it should check by input keys, and array_dot returns a bit strange result. You can try to create conditional validation like here http://laravel.com/docs/4.2/validation#conditionally-adding-rules.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

wengjs wengjs Joined 18 Dec 2014

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.

© 2024 Laravel.io - All rights reserved.