darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.33k stars 435 forks source link

stackoverflow issue #283

Open mh3yad opened 3 years ago

mh3yad commented 3 years ago

https://stackoverflow.com/questions/63931794/laravel-7-x-darryldecode-shopping-cart-session-key-required-alert-interfere

how can we fix that

dennernavarro commented 3 years ago

You could store in the front-end a unique session for the guest (maybe to your localStorage) and pass this key to your controller to read. I'm not sure if there is a better way to do it, it is just a suggestion :)