axios.patch / axios.put is not working in Vue and Laravel
actually HTTP PUT
is not recognized by html standard. try to do hack like so:
saveProfile() { axios.post('/api/pegawai/' + this.id, { // <== use axios.post data: this.data, _method: 'patch' // <== add this field }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });}