[Vuejs]-Laravel blade + vue render ajax data couple?

0👍

You cannot call a php function inside v-for because it’s out of your context.

But maybe you can do the following:

:style="'background: url({{url('/images')}}" + '/' + post.image"

And simply append the name of the image to your url.

Leave a comment