Кажется, что $request->all()
возвращает данные примерно так:
$array = [
'Array ( ____' => [
[
'order_product_id' => 39,
'order_id' => 34,
'product_id' => 48,
'name' => 'iPod Classic',
'model' => 'product 20',
'ean' => '1255AA',
'quantity' => '1',
'price' => 10.0000,
'total' => 10.0000,
'tax' => 0.0000,
'reward' => 0
],
]
];
Итак, instaed:
foreach ($request->all() as $data)
используйте:
foreach (array_shift($request->all()) as $data)