Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Verdemis's avatar

Validate bulk update

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

0 likes
2 replies

Please or to participate in this conversation.