mercredi 31 janvier 2018

validate all arrayitems except last in laravel

With the asterisk I can validate all array items, like this:

'event_time_start.*' => 'required|date_format:G:i',

But I want apply this validation rule on all items, except the last one. How can I achive this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire