Level 10
Hope this helps you. https://laravel.com/docs/5.5/validation#validating-arrays
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone,
I have a view with a list of products, which the user can edit. When the user saves his changes my request is structured like this
$request['items'][$item->id]['name']
$request['items'][$item->id]['artNo']
and so on.
What would be the best way to validate such a request. I'm not quite sure, until now I only validated simple requests, which were no lists. If possible I would like to stick with the validator function of laravel.
Best, Sascha
Please or to participate in this conversation.