My question is very simple. I use laravel's blade to display images like
<img src="{{asset('assets/images/image.jpg')}}">
but what if my image is dynamic, for example:
<img src="{{asset('assets/images/$imgsrc')}}">
I can not use
<img src="{{asset('assets/images/{{ $imgsrc')}}">
because then I finish with:
<img src="http://localhost/assets/images/{{ $imgsrc">
How can I call the $ variable in the click {{}}?
source share