Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
3.68k stars 1.73k forks source link

\Cart::restore('username') does not restore data #649

Open abdulrehman3725 opened 3 years ago

abdulrehman3725 commented 3 years ago

I have stored the cart content in table using Below code

    \Cart::store('username');

Now I want to get data from the db and show to the user

I ran

   \Cart::restore('username'); 

and then:

   dd(\Cart::content());

Nothing is shown.

I am using laravel 8.

empdigitalcl commented 3 years ago

I have the same problem in laravel 5.8