Komayo's avatar

Pagination Help - Filters

Hello guys,

I have a few paginations on a project and i want the user to select the total items to view for each page, like a filter. In the view with the paginator. How can i achieve this, whats the best way to do it?

Thank you.

0 likes
1 reply
RachidLaasri's avatar

Use JavaScript to go to when the select element changes

?per_page=value

In your controller

$per_page = Input::get('per_page ');
Post::paginate($per_page);

Please or to participate in this conversation.