hammerstone/fast-paginate
Laravel pagination macro for large tables: swap paginate() for fastPaginate() and it fetches just the IDs for the current page via a subquery, then joins them back—avoiding slow deep offsets. Drop-in replacement for Eloquent builders, no config or view changes needed.
Fast Paginate is a Laravel package that adds a fastPaginate() macro to Eloquent and query builders, providing a drop-in replacement for Laravel’s paginate(). It speeds up pagination on large datasets by using an optimized query strategy instead of Laravel’s default count-heavy pagination, while keeping the familiar paginator API.
fastPaginate() method for Eloquent/query builderHow can I help you explore Laravel packages today?