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

Irfan_majid's avatar

Laravel validation in combination of two elequent array data

How could I validate it from request file I want to check distinct combining floor_id and material_id, having a floor id can not have same material_id twice or more

From a form data i get this kind of output

project_id => 5, date => 12-15-2022, floor_id => array( 0=> 1, 1=> 5, 2=> 12 ), material_id => array( 0=>15, 1=>2, 2=>20 ), quantity => array( 0=>2500, 1=>3500, 2=>6522 )

How could I validate it from request file

0 likes
0 replies

Please or to participate in this conversation.