Skip to content

Instantly share code, notes, and snippets.

View menakeno's full-sized avatar

Enakeno Michelle menakeno

View GitHub Profile
@davidtrushkov
davidtrushkov / gist:a8bdb87227db23b147ddc22136ebc330
Created December 21, 2016 22:32
Make Bootstrap Carousel Dynamic - Laravel 5.3
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
@foreach( $trip->photos as $photo )
<li data-target="#carousel-example-generic" data-slide-to="{{ $loop->index }}" class="{{ $loop->first ? 'active' : '' }}"></li>
@endforeach
</ol>
<!-- Wrapper for slides -->