Create a SPA with Vue.JS 2, Vue-Router, Vuex and Laravel 5.6 (E02 - Vue-Router & Vuex setup)
Laravel will be used as our Backend API, users authentication with JWT, Vue.JS 2.5, Vuex 3, VueRouter and many other great libraries will help us achieve our goal.
At minute 8:00, I had a bug that I fixed behind the scenes and forgot to add it to the video.
The Fix I made:
- in the `MainApp.vue` file, import the `Header.vue` component and use it using `components: { Header }`
- import the same `Header.vue` component to your routes.js file.
all the rest should work as shown.
sorry for this misleading part.
Github Project: https://github.com/AfikDeri/Vue-Laravel-SPA
Follow me on Twitter: https://twitter.com/WeCodeTutorials
Don't forget to subscribe :)