KennedyTedesco/Validation

Can each() be supported?

judgej opened this issue · 1 comments

Being able to apply a set of rules to each element when the input to validate is an array, would be very useful. This would be a kind of nesting of validation rules, and I'm not sure how that would work with Laravel, since you would be talking more control of the flow of the validation rules and not just providing simple yes/no responses to single rules.

But I do need to ask ;-)

Any example would be for a multi-select list of countries. The countries field is submitted as an array, with each selected country an element of the array. Each of those submitted countries must be a valid country and not some injected value that an end-user hacker may be posting.

Sorry for the late reply. This library is just a "wrapper". But, I will see that possibility soon.