I'm using Vue.js and Laravel to render a simple table listing products. From there I want to link to a product detail page like this:
<a href="{{ route("product::details", ['product' => '???']) }}">@{{ product.id }}</a>
Since the table is generated on client side base on a data object, I'm looking for the most elegant way to implement that while not bypassing any laravel methods like route()
that allows me to link to a named route.
Do I really have to manually merge the result of the route-method with the Vue variable in Javascript?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire