I have array of dropdown with the same name what i'm trying to do is to display the actual name of the field when the error is displayed but now it is displaying like attributes.Size Attributes Fields are required but i want actual name which i am passing as a title to an array.
Code:
$validator = Validator::make($request->all(), [
'attributes.*' => 'required',
],[
'attributes.*.required' => ':attribute Attributes Fields are required.',
]);
{!! Form::select('attributes['.$attr->title.']') !!}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire