Skip to content

Support spatie/laravel-fast-paginate for fast pagination - #89

Merged
freekmurze merged 4 commits into
spatie:mainfrom
Riley19280:support-custom-providers
Aug 7, 2026
Merged

Support spatie/laravel-fast-paginate for fast pagination#89
freekmurze merged 4 commits into
spatie:mainfrom
Riley19280:support-custom-providers

Conversation

@Riley19280

Copy link
Copy Markdown
Contributor

Seeing as the hammerstone/fast-paginate package is archived, and aarondfrancis/fast-paginate is not updated to Laravel 13, it would be nice to be able to write a custom macro to use the fast pagination, like the one written in aarondfrancis/fast-paginate#81

Riley19280 and others added 4 commits August 5, 2026 14:59
Fast pagination is added by a macro, so method_exists never sees it and
every fast paginated request would abort. Check the macro registry, which
also keeps the goal of the PR: any package that provides one will do.

Point the docs at spatie/laravel-fast-paginate, and cover both branches
with tests.

Co-Authored-By: Claude <noreply@anthropic.com>
Add spatie/laravel-fast-paginate to the list of packages that provide
fast pagination, and cover the check with tests.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@freekmurze freekmurze changed the title Support custom fast pagination providers Support spatie/laravel-fast-paginate for fast pagination Aug 7, 2026
@freekmurze

freekmurze commented Aug 7, 2026

Copy link
Copy Markdown
Member

Thanks for raising this, and sorry for taking over your branch a bit.

You were right that the situation needed fixing: hammerstone/fast-paginate is archived and aaronfrancis/fast-paginate has not been updated for Laravel 13, which left this package pointing at nothing maintained. Rather than only widen the check, we published spatie/laravel-fast-paginate, a port of Aaron's package that we will maintain going forward. It is tagged 1.0.0 and supports Laravel 13. Aaron is credited in the readme, since the approach and most of the implementation are his.

So this PR now adds spatie/laravel-fast-paginate to the list of recognised packages, and documents fast pagination in the readme. The two older packages are still recognised, so nothing breaks for existing users.

@freekmurze
freekmurze merged commit d70e6b5 into spatie:main Aug 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants