Level 75
You can use something like this
Hi there, I'm trying to create from 0 a e-commerce based on Laravel. Actually my problem is how manage the cart. If a user add an article to cart, I need to "register" this action. I would use cookie for store this data. the question is: how can I create a cookie that store an array, that first time when I create the value is like product_id => 123 quantity =>1
and during the user session the array can have multiple adds, and I need to add new data to the array.
Please or to participate in this conversation.