can you show us how you are displaying it in your view? Why not just name the 0 key to 'model_name' or 'phone' and you can access it in your view array['model_name'] etc.
Oct 25, 2017
3
Level 1
get array value from controller
i have an array like this, this array from my controller and i parse to my view
before i send to my view i try to see my array with dd(myArray);
and my array like this
433 => array:5 [▼
"no" => 17000767
"name" => "Verizon"
"price" => "1,485,000,000.00"
0 => "Motorola"
]
oh btw this is 2 array, i use merge between my 2 array.. how to get 0=> "Motorola" in my view??
Please or to participate in this conversation.