my response to request in my laravel aplication is:
Array
(
[0] => Array
(
[order_product_id] => 39
[ean] => 1255AA
[quantity] => 1
)
[1] => Array
(
[order_product_id] => 40
[ean] => 1326489131511
[quantity] => 1
)
)
How to parsing this data in my aplication? I tried to:
foreach ($request->all() as $data)
{
print_r($data['ean']);
die();
}
I get this error: Undefined index: ean
Edit: When I use var_export($request->all()) I get:
array (
'Array
(
____' =>
array (
0 => '> Array
(
[order_product_id] => 39
[ean] => 1255AA
[quantity] => 1
)
[1] => Array
(
[order_product_id] => 40
[ean] => 1326489131511
[quantity] => 1
)
)',
),
)
Thank you very much.