Skip to content

Instantly share code, notes, and snippets.

View mmswiderski's full-sized avatar

Maciej Świderski mmswiderski

View GitHub Profile
alias gundo='git reset HEAD~ && git clean -df'
@foreach(array_chunk($posts, 3) as $postSet)
<div class="row"> <!-- this div will surround every three posts -->
@foreach($postSet as $post)
<h3>{{ $post['title'] }}</h3>
@endforeach
</div>
@endforeach