[Vuejs]-Vue varibale inside Laravel helper

0👍

You can’t do it this way. But you can use Ziggy which allows you to use route() function in vue like you are using it in laravel.
https://github.com/tightenco/ziggy
Then in your vue component you can call route('article', {id: article.id})

0👍

You can try this

<a href="{{ route('article', ['id':'article.id']) }}">Article</a>

Leave a comment