feat: add Laravel 13 support#10
Merged
Merged
Conversation
Widen the framework constraints so the package installs on both Laravel 12 and Laravel 13: - illuminate/* constraints -> ^12.0 || ^13.0 - orchestra/testbench -> ^10.0 || ^11.0 Adding Laravel 13 (testbench 11 / PHPUnit 12) requires the Pest 4 toolchain, since pest-plugin-laravel 3 does not allow testbench 11. Bump pestphp/pest, pestphp/pest-plugin-arch, and pestphp/pest-plugin-laravel to ^4.0. These are dev-only dependencies, so there are no public API changes; the full suite (161 tests) passes on both Laravel 12 and Laravel 13. Extend the CI matrix to run against Laravel 12 (testbench 10) and Laravel 13 (testbench 11) on PHP 8.4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cz6nMNn2ZkQBWEkPxBSqkj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Laravel 13 support while keeping Laravel 12 fully supported. The framework constraints are widened rather than replaced, so existing Laravel 12 consumers are unaffected.
Changes
composer.jsonilluminate/contracts,illuminate/pipeline,illuminate/queue,illuminate/support:^12.0→^12.0 || ^13.0orchestra/testbench:^10.0→^10.0 || ^11.0pestphp/pest,pestphp/pest-plugin-arch,pestphp/pest-plugin-laravel:^3.x→^4.0.github/workflows/run-tests.yml— CI matrix now runs Laravel 12 (testbench 10) and Laravel 13 (testbench 11) on PHP 8.4.CHANGELOG.md— documented under anUnreleasedsection.Why the Pest 4 bump?
Laravel 13 requires
orchestra/testbench11, which runs on PHPUnit 12. The current Pest 3 toolchain caps out at PHPUnit 11, and more decisivelypestphp/pest-plugin-laravel3 only permitsorchestra/testbench^9.9 || ^10.2— it will not resolve against testbench 11. Pest 4 (pest-plugin-laravel4) supports Laravel 11/12/13, so it covers the whole matrix. These are dev-only dependencies, so there are no public API changes for consumers.No source or test code changes were needed — the arch/expectation APIs used are stable across Pest 3 and 4.
Verification
Resolved and ran the full suite locally against both targets (PHP 8.4):