Support the ongoing development of Laravel.io →
posted 5 years ago

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>
Last updated 3 years ago.
0

add to your images links "/" src, like.

<img src="/images/item/tp/Image00014.jpg" alt="img"/>

Last updated 5 years ago.
0

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> 
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Soulk0101 soulk0101 Joined 30 Aug 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.