Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

I think you should build it, what is clear is that you need page= page1= page2= , I mean, different GET Variables foreach pagination. If you use page= for every pagination, if you pass to page=2 every paginated items will shown second page items.

Also you can conbine, the first one, do it with paginate(x) (page var is reserved). You may implement the other ones:

$page1 = Input::get('input1',1);
$page2 = Input::get('input2',1);
.....
$skip1 = $page1*$perpage;
$items1 = Items::skip($skip1)->take($perpage)->get();
$items1Total = Items::count();
$items1LastPage....
....

or maybe using Paginator::make() and passing the items, the total,perpage and customize the URL to get different "page" var as I told you http://laravel.com/docs/pagination#usage

but I think you will get all the results...so maybe, best is to combine, geting just what you need to show, so skip and take what you need, and pass it to the paginator make.

Good luck. I can't help you more now, I am busy, and I think the best way is to understand the idea and where the problem is, or where the problems are and solve them by yourself.

Last updated 1 year ago.
0

I guess I understand.

Thank You.

Last updated 1 year ago.
0

I found another easy solution on stack overflow. By setting page name for each pagination. It worked for me.

http://stackoverflow.com/a/25553245/3994415

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.