I have a Laravel 5.1 project that I'm trying to improve and now migrating some features to Vue.js
to make it more interactive and stuff.
In my view I have
<img src="{{ file_storage_path($product->path) }}" alt="{{$product->name}}"/>
This is default implementation using Laravel's blade
.
Now, when I delegate this to the Vue.js
I would have something like this
<img src="{{ file_storage_path(product.path) }}" alt="@{{product.name}}"/>
But this of course fails. So I need both - to invoke a php-function
and at the same time to render Vue
data.
I tried this
src="{{ file_storage_path( @{{product.path}} ) }}"
But of course this fails too. any suggestions?