Question and answer is powered by AnsPress.io
I want to validate all items in an array using Laravel validation. How can I do it?
Validate all items in an array quickly and easily using Laravel validation.
Example:
<?php public function rules() { return [ 'attendees.*.name' => 'required|string', ] } ?>
Hope it will be helpful for you.