Skip to content
Advertisement

Laravel Applications Invalid argument supplied for foreach() Errors

I am learning PHP Laravel and I am developing shopping cart project. I am able to add the product into list but, when I click shopping cart link. I am getting following error.

FacadeIgnitionExceptionsViewException Invalid argument supplied for foreach() (View: C:UsersKhundokar NirjorDesktoplaravel Tutorialshopping-cartresourcesviewsshopshopping-cart.blade.php)

Here is my Router

JavaScript

Here is my header.blade.php code.

JavaScript

Here is my shopping-cart.blade.php

JavaScript

Here is my controller code

JavaScript

Here is screen shot when I clicked the shopping-cart link

enter image description here

Advertisement

Answer

Try like this

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