murilo's avatar
Level 10

best way to make a cart on a vue single application + Laravel

Hello , I am building a Larvel + Vue single application ecommerce . I would like to know what is the best way to store the cart of products , that the user select .

As I am using a VUE single application , I can store that on Javascript Cookie ( I will use SSR , so I will not able to use Local Storage ) .

Other option is use Redis , I had never worked with Redis , I wold like to know , if that wold be the best option .

0 likes
1 reply
martinbean's avatar

@murilo If you’re using cookie authentication, then you can have API endpoints that fetch and update a cart for the authenticated user.

Please or to participate in this conversation.