jeudi 28 février 2019

required array fields with another array fields in Laravel

I am validating two arrays in Laravel frame work. I would like to validate the relation between this two array fields. How can I validate this in request?

'rank.*' => 'integer|min:1|required_with:score.*',
'score.*' => 'numeric|required_with:rank.*',



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire