isimmons's avatar

L5 paginator chunk

For Larabook we were using

@foreach($users->chunk(4) as $userSet)
        <div class="row users">
            @foreach($userSet as $user)
                <div class="col-md-3 user-block">
                    @include('users.partials.avatar', ['size' => 70])
                    <h4 class="user-block-username">
                        {{{ link_to_route('users.profile', $user->username, [$user->username]) }}}
                    </h4>
                 </div>
            @endforeach
        </div>
    @endforeach

But with recent changes Paginator::chunk is undefined.

Anyone using pagination in L5 know the solution to this?

0 likes
2 replies
isimmons's avatar

Ah, I looked to see if anyone else had the issue but not hard enough I guess :-)

Please or to participate in this conversation.