[Vuejs]-How can I send a VueJS object to store in Laravel controller?

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

Leave a comment