Crinsane/LaravelShoppingcart content returns empty

More over I was struggling for a day on this. Then I found that because I put dd() in same request while cart add, the so session was not created for cart.

Try to first do the Cart::add() and no dd(). Then comment the Cart::add() and uncomment the dd()

Now you should see content, and a rowId. Now you should be able to delete it.

When you perform a dd() method, it will make the script die instantly, so the session is not written.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s