[Vuejs]-How to store logged In user_id in vuejs

0👍

you can send data with your axios request like this:

  axios.post('/url', {
       user_id: {{ Auth::user()->id }}
     }, {
       headers: headers
     })

and in your controller you can access it with:$request->user_id;

Leave a comment