Skip to content

Instantly share code, notes, and snippets.

@rowej83
rowej83 / example.html
Created June 27, 2014 12:22 — forked from JeffreyWay/example.html
array_chunk() usage
@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