Skip to content
Advertisement

Not able to get array variable contents after passing them from controller to views

I am passing array after decoding it from controller to views.

AddressController.php

JavaScript

I only want name, price and quantity from the array but it is giving Trying to get property of non-object.

send.blade.php

JavaScript

Advertisement

Answer

Just access the key instead of trying to acces it like object:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement