I\'m trying to learn vue and with that I want to integrate it with laravel too.. I simply want to send the user id from blade to vue component so I can perform a put request
To pass down data to your components you can use props. Find more info about props over here. This is also a good source for defining those props.
props
You can do something like:
OR
And then in your Example.vue file you have to define your prop. Then you can access it by this.userId.
Example.vue
this.userId
Like :