I am wanting to show more than one image in an article, using a carousel. Yes or yes shows one (main image), and with a limit of 5 photos
In case the carousel is not the problem, the theme is the collection where I have the x images. Trying trial and error, come to the conclusion that I need an active item. So I show the first image with first () and then I would go through the collection, showing the other images.
The problem is that I can not make the collection move to the next object to start tracing it
So I read the collections do not have a next () or something like that. Here I leave the code
<div id="mi-carousel" class="carousel slide">
<!-- Contenedor de los Slide -->
<div class="carousel-inner">
<div class="item active">
<img src="{{ asset('img/articulos/'.$articulo->imagenes->first()->nombre) }}" class="img-responsive" alt="" >
</div>
@foreach($articulo->imagenes as $imagen)
<div class="item">
<img src="{{ asset('img/articulos/'.$imagen->nombre) }}" alt="" class="img-responsive">
</div>
@endforeach
</div>
<!-- Controloles -->
<a class="left carousel-control" href="#mi-carousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Anterior</span>
</a>
<a class="right carousel-control" href="#mi-carousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Siguiente hidden-xs hidden-sd</span>
</a>
</div>
Just like this, it shows the first image 2 times