0👍
You can just in your request
add the json which is your v-model in the body request, but the request have to be POST, PUT, PATCH.
in axios you do something like this
axios.post('/users', this.user).then(response => response);
In your controller, you will receive it like an array because laravel parses the object.
and you can get it like this
$request->user['name'] //for example
- [Vuejs]-How Can I Know In Which Component I Was There
- [Vuejs]-How to use Vue.js in an external js file
Source:stackexchange.com