Laravel Fast Paginate is a fast implementation of offset/limit pagination for Laravel by Aaron Francis:
🎉 I've just released the first version of a new package for Laravel: Fast ⚡️ Paginate.— Aaron Francis (@aarondfrancis) July 7, 2022
Fast Paginate provides you with a more efficient way of paginating while still using the traditional offset/limit method.https://t.co/698zKmFY1i
Using Fast Paginate, you can use the same pagination API available in Laravel via the
1// Traditional built-in pagination2Model::query()->paginate()34// Fast paginate has the same method signature5Model::query()->fastPaginate()67// Relationships are supported8User::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.