#Asset inside URL() helper
1 messages · Page 1 of 1 (latest)
Have you tried…?
I've tried. But I am using the laravel-vapor asset helper, and it did not work.
Define “did not work”.
The image does not load :))
So look at what URL is generated in your HTML.
That's the issue. When adding asset into the url() the style="" disappears 🙂
Without asset inside the URL.
With the asset inside the URL.
It's not using blade, it's vue fyi 🙂
Well it’s going to get interpreted as a Vue directive in that case.
You can’t use Laravel helpers in client-side code.
It does work in this particular case, but not in url() which is really frustrating 😛