[Vuejs]-Is it possible to save form data through with Vue.js through Controller without Axios or asynchronous call?

0👍

Sure you can, all you need to do is to be aware that HTML does not have methods other than GET and POST. So, if you have PUT, DELETE and others, you’re going to have to use the _method param trick.So, for example, when using the PUT http verb, you should create your form something like this:

<form method='POST'>
       yourfields...
       <input type="hidden" name="_method" value="PUT">
</form>

Other than that, it’s pretty much calling the correct endpoints from your Vue application.

Leave a comment