Hello everyone, I am a young beginner in development laravel and I really need your help. I have a website that I did under laravel and I would like to make the slide dynamic. here is the HTML code below.
<div class="item-slider">
<h1 class="pricetag">$25</h1>
<ul class="bxslider">
<li><img src="images/item/tp-big/Image00014.jpg" alt="img"/></li>
<li><img src="images/item/tp-big/Image00015.jpg" alt="img"/></li>
<li><img src="images/item/tp-big/Image00013.jpg" alt="img"/></li>
</ul>
<div id="bx-pager">
<a class="thumb-item-link" data-slide-index="0" href=""><img src="images/item/tp/Image00014.jpg" alt="img"/></a>
<a class="thumb-item-link" data-slide-index="1" href=""><img src="images/item/tp/Image00015.jpg" alt="img"/></a>
<a class="thumb-item-link" data-slide-index="2" href=""><img src="images/item/tp/Image00013.jpg" alt="img"/></a>
</div>
</div>
add to your images links "/"
src, like.
<img src="/images/item/tp/Image00014.jpg" alt="img"/>
Dont use absolute paths, everytime you have to use something from public folder, use asset() helper it will decrease the errors hen uploading for a webserver.
For example
<li><img src="{{asset('images/item/tp-big/Image00014.jpg')}}" alt="img"/></li>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community