I am validating an array in Laravel. I get "0.id has already been taken."
in default error message. So I added a 2nd parameter in my validator: 'unique' =>':attribute has already been taken. Please fix your data in spreadsheet.'
and shows "0.id has already been taken. Please fix your data in spreadsheet."
. I added the 3rd parameter which is the custom attribute. ['*.id' =>'Student ID']
. But I want to have a message like this: ID has already been taken. Please fix your data in spreadsheet in line 1.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire