Support the ongoing development of Laravel.io →
posted 9 years ago
Architecture
Last updated 2 years ago.
0

IMHO, it is better to store to the DB as well as a session. Basically, a session ID with details of items in the cart, that also stores records to the DB. This way you can perhaps send 'this is still in your cart' emails etc for upsellng... And record abandoned carts etc.

You'd need garbage collection for this though. There are few packages that help with you with this. Cartalyst is worth Googling.

Bit of a crap answer, sorry, but might give you an idea in which way to go. It's a very broad question.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

isomis isomis Joined 7 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.