[Vuejs]-Laravel-Vuex:Update to a record not showing in the database

0👍

Fixed,i accidentally failed to pass the payload to the request as follows

  updateCategory({ commit }, updatedCategory) {
    axios.put("api/food_categories/" + updatedCategory.id,{
        'category_name':updatedCategory.category_name  //This was the missing part
    }).then(() => {
        commit("changeName", updatedCategory);
    });
}, 

Leave a comment