In this tutorial we'll see how to make a persistent shopping cart using only frontend technologies, namely JavaScript (ES6) and Vue.js 2 with Vuex. This is probably not a perfect solution for a cart, yet it is dynamic and pretty easy to implement.

We'll be working within Laravel, although this solution would work with any framework or setup. We won't be developing a full store, just enough to demonstrate the cart. This is also a good introduction to Vuex for those who have no experience with it whatsoever.