Did you create the route for the delete request?
Also I found a small tutorial on doing this with Lumen and Vuejs :https://unnikked.ga/a-guestbook-using-lumen-and-vuejs
hello iam trying to make delete request with vuejs as i read in https://github.com/vuejs/vue-resource
they have this.$http.delete so i was think this delete can be accepted by laravel but it was wrong in console it give me
Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
this is my view
<a href="#" title="Delete {{ $manufacturer->name }}" v-on="click: deleteItem({{ $manufacturer->id }})" ><i class="fa fa-trash-o"></i></a>
this is my js method
deleteItem: function(id){
console.log(this.$http.delete('manufacturer', id));
}
Well I think because of the redirect, but I'm not sure about it!
Please or to participate in this conversation.