NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #520 most downloaded on Packagist
Rector upgrades rules for Laravel Framework
Latest stable
2.7.3
Last release 26 days ago
27 Oct 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
91 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Skip authorize() with statements before return true in RemoveDefaultAuthorizeTrueFromFormRequestRector by @calebdw in https://github.com/driftingly/re
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.7.2...2.7.3
Bump Rector to ^2.8 by @samsonasik in https://github.com/driftingly/rector-laravel/pull/595
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.7.1...2.7.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add StaticFacadeToServiceMethodCallRector to replace deprecated core rule by @TomasVotruba in https://github.com/driftingly/rector-laravel/pull/590
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.7.0...2.7.1
Add composer keywords so Composer suggests --dev on require by @chinmaypurav in https://github.com/driftingly/rector-laravel/pull/558
now()->startOfDay() by @jivanf in https://github.com/driftingly/rector-laravel/pull/570Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.6.2...2.7.0
Cap 5.x upgrade rules at <6.0 by @TomasVotruba in https://github.com/driftingly/rector-laravel/pull/555
<6.0 by @TomasVotruba in https://github.com/driftingly/rector-laravel/pull/555Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.6.1...2.6.2
Move Cashier to composer-based set, deprecate Cashier + Livewire set lists by @TomasVotruba in https://github.com/driftingly/rector-laravel/pull/546
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.6.0...2.6.1
fix: LARAVEL_STATIC_TO_INJECTION to point to correct translation methods. by @Andyuu in https://github.com/driftingly/rector-laravel/pull/519
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.5.0...2.6.0
Bump to Rector ^2.4.1 and replace deprecated file to getFile() on rector rule by @samsonasik in https://github.com/driftingly/rector-laravel/pull/492
ValidationRuleArrayStringValueToArrayRector processing closures inside rules() method by @SanderMuller in https://github.com/driftingly/rector-laravel/pull/475Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.10...2.5.0
feat: Add Laravel 13 set without attribute migrations by @Muetze42 in https://github.com/driftingly/rector-laravel/pull/494
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.3.0...2.4.0
Bump to Rector ^2.4.1 and replace deprecated file to getFile() on rector rule by @samsonasik in https://github.com/driftingly/rector-laravel/pull/492
ValidationRuleArrayStringValueToArrayRector processing closures inside rules() method by @SanderMuller in https://github.com/driftingly/rector-laravel/pull/475Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.10...2.3.0
Use default PHPUnit suite in downgraded release workflow by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/479
ValidationRuleArrayStringValueToArrayRector processing closures inside rules() method by @SanderMuller in https://github.com/driftingly/rector-laravel/pull/475Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.10...2.2.0
Use default PHPUnit suite in downgraded release workflow by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/479
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.10...2.1.12
Use default PHPUnit suite in downgraded release workflow by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/479
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.10...2.1.11
Fix deprecated use of Expr\ArrayItem over Node\ArrayItem by @samsonasik in https://github.com/driftingly/rector-laravel/pull/471
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.9...2.1.10
Bump to rector ^2.3.0 and migrate FileWithoutNamespace to FileNode by @samsonasik in https://github.com/driftingly/rector-laravel/pull/452
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.8...2.1.9
Stricter checks for converting startOfDay() to today() by @philo23 in https://github.com/driftingly/rector-laravel/pull/449
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.7...2.1.8
Additional Analysers for Models/Query Builder by @peterfox in https://github.com/driftingly/rector-laravel/pull/438
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.6...2.1.7
Reduce NodeVisitor::DONT_TRAVERSE_* usage on ArrayToArrGetRector, ReplaceFakerInstanceWithHelperRector, ServerVariableToRequestFacadeRector, RequestVa
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.5...2.1.6
fix: app to resolve rector by @calebdw in https://github.com/driftingly/rector-laravel/pull/433
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.4...2.1.5
fix: Ensure reset key of stmts/args before returning node when there is unset by key by @samsonasik in https://github.com/driftingly/rector-laravel/pu
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.3...2.1.4
fix: add missing webmozart/assert dependency by @calebdw in https://github.com/driftingly/rector-laravel/pull/420
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.2...2.1.3
fix: property/variable static calls, EloquentMagicMethodToQueryBuilderRector by @parth391 in https://github.com/driftingly/rector-laravel/pull/406
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.1...2.1.2
Remove AttributeGroupNewLiner usage as removed in rector:dev-main by @samsonasik in https://github.com/driftingly/rector-laravel/pull/413
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.1.0...2.1.1
feat: add ArrayToArrGetRector by @MrPunyapal in https://github.com/driftingly/rector-laravel/pull/382
config() calls to use type-specific methods when the expected type is known by @imliam in https://github.com/driftingly/rector-laravel/pull/399Request::input calls from ApplyDefaultInsteadOfNullCoalesceRector by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/393Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.7...2.1.0
Add ConvertEnumerableToArrayToAllRector by @calebdw in https://github.com/driftingly/rector-laravel/pull/363
UseForwardCallsTraitRector by @guanguans in https://github.com/driftingly/rector-laravel/pull/367Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.6...2.0.7
Rule to use Forward calls trait by @peterfox in https://github.com/driftingly/rector-laravel/pull/349
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.5...2.0.6
Add Context to facade-aliases-to-full-names by @cosmastech in https://github.com/driftingly/rector-laravel/pull/333
Context to facade-aliases-to-full-names by @cosmastech in https://github.com/driftingly/rector-laravel/pull/333Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.4...2.0.5
Fix(eloquent relations): add pivot class for BelongsToMany relations by @jrdnrc in https://github.com/driftingly/rector-laravel/pull/316
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.3...2.0.4
Laravel 12 set with Bind Closures without Abstract rule by @peterfox in https://github.com/driftingly/rector-laravel/pull/304
UnaliasCollectionMethods by @MrYamous in https://github.com/driftingly/rector-laravel/pull/305HelperFuncCallToFacadeClassRector, allow with argument by @parth391 in https://github.com/driftingly/rector-laravel/pull/318Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.2...2.0.3
Upgrade RouteActionCallableRector rule to handle groups by @peterfox in https://github.com/driftingly/rector-laravel/pull/284
Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.1...2.0.2
New Rule to use the whereLike clause in Laravel 11.x by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/267
whereLike clause in Laravel 11.x by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/267Full Changelog: https://github.com/driftingly/rector-laravel/compare/2.0.0...2.0.1
Check the release notes of the core Rector 2.0 release, now supporting PHPParser 5 and PHPStan 2.
Check the release notes of the core Rector 2.0 release, now supporting PHPParser 5 and PHPStan 2.
MigrateToSimplifiedAttributeRector to Laravel 9 set by @maks-oleksyuk in #275RectorLaravel\AbstractRector class that replaces the core AbstractRector and implements the DocumentedRuleInterface.Thank you to @samsonasik, @maks-oleksyuk, and @mwikberg-virta for your help in this release.
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.6...2.0.0
Remove null coalesce for methods with default argument by @peterfox in https://github.com/driftingly/rector-laravel/pull/268
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.5...1.2.6
Add new rule AssertSeeToAssertSeeHtmlRector by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/251
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.4...1.2.5
Adds a set provider class by @peterfox in https://github.com/driftingly/rector-laravel/pull/248 https://github.com/driftingly/rector-laravel/pull/249
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.3...1.2.4
Bump to Rector 1.2.5 and fix compatible of isObjectType() usage to use ClassLike instead of ClassMethod by @samsonasik in https://github.com/driftingl
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.2...1.2.3
Add AvoidNegatedCollectionFilterOrRejectRector by @spawnia in https://github.com/driftingly/rector-laravel/pull/234
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.1...1.2.2
Update README.md with available sets by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/209
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.2.0...1.2.1
Remove redundant rule in laravel-static-to-injection set by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/208
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.1.1...1.2.0
Remove redundant ArgumentAdderRector for nullable arguments by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/203
Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.1.0...1.1.1
Adds a fix for ThrowIfRector causing issues with assigned vars by @peterfox in https://github.com/driftingly/rector-laravel/pull/181
every to nth by @driftingly in https://github.com/driftingly/rector-laravel/pull/188MyJob::dispatch() to dispatch(new MyJob()) by @bram-pkg in https://github.com/driftingly/rector-laravel/pull/193Full Changelog: https://github.com/driftingly/rector-laravel/compare/1.0.0...1.1.0
Update Rector to 1.0 by @driftingly in https://github.com/driftingly/rector-laravel/pull/176
1.0 by @driftingly in https://github.com/driftingly/rector-laravel/pull/176Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.41.0...1.0.0
[Fix] Docs regenerated by @peterfox in https://github.com/driftingly/rector-laravel/pull/174
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.40.0...0.41.0
Add method exclusions for EloquentMagicMethodToQueryBuilderRector by @tanerkay in https://github.com/driftingly/rector-laravel/pull/171
EloquentMagicMethodToQueryBuilderRector by @tanerkay in https://github.com/driftingly/rector-laravel/pull/171Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.30.0...0.40.0
Remove deprecated rector/phpstan-rules by @driftingly in https://github.com/driftingly/rector-laravel/pull/170
rector/phpstan-rules by @driftingly in https://github.com/driftingly/rector-laravel/pull/170Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.29.0...0.30.0
Replaces without jobs/events/notifications to the appropriate facade by @peterfox in https://github.com/driftingly/rector-laravel/pull/166
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.28.1...0.29.0
Update downgrade script for new PHP version by @driftingly in https://github.com/driftingly/rector-laravel/pull/165
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.28.0...0.28.1
Bump PHP and add rector to downgraded composer by @driftingly in https://github.com/driftingly/rector-laravel/pull/164
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.27.0...0.28.0
Support Rector 0.18.8 and bump minimum Rector version that works by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/151
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.26.2...0.27.0
Fixes a mix up between latest() and oldest() by @peterfox in https://github.com/driftingly/rector-laravel/pull/146
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.26.1...0.26.2
Remove deprecations from Rector 0.18.4 by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/144
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.26.0...0.26.1
Adds EloquentWhereRelationTypeHintingParameterRector rule by @peterfox in https://github.com/driftingly/rector-laravel/pull/138
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.25.0...0.26.0
Remove reverted Laravel 10 rule (getBaseQuery -> toBase) by @joelvh in https://github.com/driftingly/rector-laravel/pull/130
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.24.1...0.25.0
Correct paths by @u01jmg3 in https://github.com/driftingly/rector-laravel/pull/131
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.24.0...0.24.1
Remove the model property from Factories and add extends annotation by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/128
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.23.0...0.24.0
Add Laravel Cashier 13 & 14 upgrade rules by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/103
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.22.1...0.23.0
Support Rector 0.17.11 by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/124
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.22.0...0.22.1
Support for Rector 0.17.1 by @GeniJaho in https://github.com/driftingly/rector-laravel/pull/117
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.21.0...0.22.0
Filter out internal PHP functions from set by @driftingly in https://github.com/driftingly/rector-laravel/pull/109
now()->startOfDay() to today() rule by @peterfox in https://github.com/driftingly/rector-laravel/pull/114!blank() and !filled() to use the correct func by @peterfox in https://github.com/driftingly/rector-laravel/pull/113ArgumentFuncCallToMethodCallRector to package by @driftingly in https://github.com/driftingly/rector-laravel/pull/108Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.20.0...0.21.0
Empty() to Blank() or Filled() refactor rule by @peterfox in https://github.com/driftingly/rector-laravel/pull/104
Full Changelog: https://github.com/driftingly/rector-laravel/compare/0.19.0...0.20.0
One column per quarter.