agCepeda's avatar

New way to paginate.

Hi! Everyone i recent become a laravel 5.4 user and i have some doubts about the pagination. In laravel 4.0 i used paginate using

$queryBuilder->paginate($perPage, $page);

but in this version it doesn't work.

What is the way in this new version to paginate avoid using the query parameters in the url?. I want to have the flexibility to set the parameters directly in the query builder.

0 likes
1 reply
jlrdw's avatar

It's thoroughly documented also there is a lengthaware paginator I'm on mobile now later I will try to give a quick example. However if you search the forum there are other examples of lengthaware.

And laravel is flexible enough to actually write your own paginator if so desired.

Please or to participate in this conversation.