I have fields with array field names and I am having issues validating the fields. An example is: user[first_name]
$this->validate(request(), [
'user[first_name]' => 'required|min:15',
]);
if ($errors->any()) {
print_r($errors->all());exit;
}
It seems that Laravel does not detect the field this way, I get user[first_name] is required.
Help will be appreciated.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LjufAX
via IFTTT
Aucun commentaire:
Enregistrer un commentaire