I recommend the Laravel and Vue JS: Fullstack Web Development series from Laracasts. It covers the basics of setting up a full-stack application with Laravel and Vue, and then dives into more advanced topics like authentication, authorization, and more. It also covers how to use Vuex to manage state and how to use the Axios library to make API calls.
// Example code from the series
import axios from 'axios';
export default {
namespaced: true,
state: {
contacts: [],
},
actions: {
fetchContacts({ commit }) {
return axios.get('/api/contacts')
.then(response => {
commit('setContacts', response.data);
});
},
},
mutations: {
setContacts(state, contacts) {
state.contacts = contacts;
},
},
};