Open DevHP03 opened 5 years ago
I'm still new to Laravel, but that's not how I access arrays in blade.php files. Try doing this:
$this['model']['slug]
If it's not working, try checking the values of $item
or $item['model']
by putting {{ dd($item) }}
below @foreach(..)
The Cart::content() array is not working. It does not loop over the cart content. You can see here it says 9 items in the cart and yet it does not loop over
When I use the Cart:: content() as $item in foreach for set the href for example
When the cart is empty everything right but when I add a product to the cart the error says
Trying to get property 'slug' of non-object (View: C:\xampp\htdocs\ACode\projectweb\Karajelectronic\karajelectronic-shop\resources\views\front\cart.blade.php)