Fast Paginate for Laravel

Packages

July 8th, 2022

Fast Paginate for Laravel

Laravel Fast Paginate is a fast implementation of offset/limit pagination for Laravel by Aaron Francis:

Using Fast Paginate, you can use the same pagination API available in Laravel via the fastPaginate() method:

// Traditional built-in pagination
Model::query()->paginate()
 
// Fast paginate has the same method signature
Model::query()->fastPaginate()
 
// Relationships are supported
User::first()->posts()->fastPaginate();

If you'd like to learn more about the techniques used in this package, check out Efficient Pagination Using Deferred Joins by Aaron Francis.

You can learn more about this package, get full installation instructions, and view the source code on GitHub.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.