I have an array as:
$row =["Hus","Fikret","Akif","09.04.`1981","XXX",16428285,"QT0FE12",19283746564923];
I tried to validate this $row
as:
$validator = \Validator::make($row, [
'*.0' => 'required',
'*.1' => 'required',
'*.2' => 'required',
'*.3' => 'required',
'*.4' => 'required',
'*.5' => 'required',
'*.6' => 'required',
'*.7' => 'required',
])->validate();
I always get exception message:
"The given data was invalid."
What is wrong if all elements of array are filled
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire