p0t4t0
154
1
Laravel

Proper way to go about building a shopping cart API?

Posted 4 months ago by p0t4t0

I have looked and tried at least 3 packages and all of them store cart items in session which I do not want because I need both the cart items for a user on the web app and mobile app versions of the app I am building to be syncing. I did some thinking and I cannot possibly do this unless I store the cart items in a database.

My questions:

  1. Would this be advisable?
  2. Are there other ways?
  3. Are there existing packages that already does the above?

I thank anyone in advance who can help out

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.