1👍
✅
As far as I can see, you’re not submitting any data to your route.
update: function (post) {
var url = 'groups/' + post.id;
axios.put(url).then(response => {
this.getGroups();
});
}
You’re not supplying the values of the post
variable to your axios call. You need to add the object you are sending as the second parameter to your put(...)
call.
axios.put(url, post).then(response => {
this.getGroups();
});
Edit: Be sure you validate your data when it arrives!
Source:stackexchange.com