Just save it to a session ;) Or save it in the database and let the session point to that cart id in the database.
Documentation: http://laravel.com/docs/5.1/session
I think this book can help you as well: https://leanpub.com/easyecommerce
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
how to save something like cart details in a browser session ? So that user could see his cart even when he open the browser after he closes it.
Please or to participate in this conversation.