1

I am using Laravel with VueJS I have a simple code.

        <div class="large-6 columns properties" v-for="property in selectedProperties">
       <h6 class="ribbon" v-if="property.discount"><strong>@{{property.discount}} % OFF </strong></h6>
        <div class="card">
      <img src="{{asset("storage/$hotel->image")}}"> //Here i need to use property.image instead of $hotel->image
//How can i use this Js variable in asset() of php? 
      <div class="card-section">
    @{{property.name}}

      </div>
    </div>
    </div>

How can i use property.image instead of $hotel->image in asset() function of laravel/PHP?

Rakesh Kohali
  • 275
  • 2
  • 5
  • 17

0 Answers0