I am currently trying to update the rating value in the commented_type
column. In Laravel, I typically use something like commented_type>rating for this purpose. However, I am unsure of how to accomplish this task using vue.js.
The JSON structure of the column is as follows:
commented_type
{"type": "review", "rating": 5}
updateReview: function () {
var reviewData = {
id:584,
commented_type>rating:'4',//Unfortunately, this method does not work
};
this.$http.patch('/review/584',reviewData).then((response) => {
console.log(response.data);
}, (response) => {
// error callback
console.log('error response review update')
});
},