Feb 8, 2016
0
Level 1
Multiple pagination with Laravel (2 pagination in 1 page)
I have a view page with 2 paginations. I've found the solution to change pagename
->paginate(2)->setPageName('page'); ->paginate(3)->setPageName('opage');
but the second pagination is in the first here is example:
@foreach($comments as $comment) comment output @foreach($reply as $rep) @if($comment->id == $rep->parent_id) replay output @endif @endforeach
here i need pagination, but first foreach loop, here takes first pagination and outputs only 3 comments .
any ideas how to fix?
Please or to participate in this conversation.