Mr1Buying's avatar

Documentation error that gives you tears

https://laravel.com/docs/5.7/validation#validating-arrays In the exempel box the code is 'person.asterix.email', the correct code is 'person.email.asterix', now the validation rules will validate every persons email in the array person (that should be spelled in plural in the doc aswell). With the current code it will only validate a peron[*]['email'] field. It migth just be me, but my tears are gone and Im coding away.

Edit: inside qoutes the * dont show, so for clarity I spelled it out instead

0 likes
1 reply
Mr1Buying's avatar

Mission aborted... the tears are back. Changed the $req->validated() to $req->input() whiletrying to get it to work. Still trying to validate arrays in Request files

Please or to participate in this conversation.