Level 88
What do you mean? Can you be more specific please!
1 like
I try something like that
User::paginate(10);
And when I click 2 via my view it's go /?page=2 and it's just show after record 10. How do I get previous pagination data?
Add a select element and when a user select an element take them to "http://domain.com/users?page=2&show=20"
in your controller :
$postsPerPage = Input::has('show') ? Input::get('show') : 10;
User::paginate($postsPerPage);
Please or to participate in this conversation.