In controller i have two queries like:
$results1 = Something1::with('something2')
->where_instance_id(...)
->where_page_id(2)
->where_in('status',array('bla','blabla'))
->paginate(10);
$results2 = Something1::with('something2')
->where_instance_id(...)
->where_page_id(4)
->where_in('status',array('bla','blabla'))
->paginate(10);
And then in the one view(one page) i have two physical page. One of them through table will describe $results1 and one will describe $results2.
Problems is with that laravel 3 doesn't support two pagination on one page?
When i do something like:
{{ $results1->links() }}
{{ $results2->links() }}
it doesn't work, when i click on the button for the pagination for $results1 i change the view also for $results2, and vice versa.
NOTE: I can't make two views.
Any idea or alternative way to solve this?
Thanks.