I receive data from a view in this way, is there a way to separate them and make it like the example below?
array:6 [▼
"id_producto" => array:1 [▼
"insumo" => "7"
]
"precio" => array:1 [▼
"precio" => "4500"
]
"cantidad" => array:1 [▼
"cantidad" => "1"
]
"total" => array:1 [▼
"total" => "4500"
]
"estado" => 1
"id_control" => 58
]
expected result,
array:6 [▼
"id_producto" => "7"
]
"precio" => "4500"
]
"cantidad" => "1"
]
"total" => "4500"
]
"estado" => 1
"id_control" => 58
]
This is just part of the problem, I narrow it down to be shorter, thank you very much in advance