NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3476 most downloaded on Packagist
Auto register routes using PHP attributes
Latest stable
1.28.0
Last release 8 months ago
06 Mar 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 49 of 51 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
51 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
## What's Changed - Laravel 13.x Compatibility
Fix Middleware cannot target method error by @freekmurze in https://github.com/spatie/laravel-route-attributes/pull/182
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.27.0...1.27.1
Use spatie/php-attribute-reader for attribute resolution in #180
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.3...1.27.0
Filter empty config values before passing to route group by @freekmurze in https://github.com/spatie/laravel-route-attributes/pull/179
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.2...1.26.3
Prevent duplicated prefix on grouped resource routes by @nivseb in https://github.com/spatie/laravel-route-attributes/pull/175
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.1...1.26.2
Fix: Missing resource controller defined by groups by @nivseb in https://github.com/spatie/laravel-route-attributes/pull/173
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.0...1.26.1
Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/spatie/laravel-route-attributes/pull/162
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.2...1.26.0
Create RouteRegistrar with DI instead of literal instantiation by @gvlasov in https://github.com/spatie/laravel-route-attributes/pull/160
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.1...1.25.2
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/154
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.0...1.25.1
Add WithoutMiddleware option to route by @mikield in https://github.com/spatie/laravel-route-attributes/pull/151
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.24.0...1.25.0
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/147
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.23.0...1.24.0
Prevent resource method take precedence over normal method. by @hvsy in https://github.com/spatie/laravel-route-attributes/pull/146
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.22.2...1.23.0
Fix resource when has domain by @lloricode in https://github.com/spatie/laravel-route-attributes/pull/144
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.22.1...1.22.2
Added WithTrashed attribute by @michaelhrivnak in https://github.com/spatie/laravel-route-attributes/pull/141
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.22.0...1.22.1
Add support for withoutScopedBindings to ScopeBindings attribute. by @mikerockett in https://github.com/spatie/laravel-route-attributes/pull/139
withoutScopedBindings to ScopeBindings attribute. by @mikerockett in https://github.com/spatie/laravel-route-attributes/pull/139Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.21.0...1.22.0
Laravel 11.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-route-attributes/pull/136
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.20.1...1.21.0
Fix missing quote in route-attributes.php by @nokimaro in https://github.com/spatie/laravel-route-attributes/pull/133
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.20.0...1.20.1
Allow to register multiple Get route declarations on one method by @rico in https://github.com/spatie/laravel-route-attributes/pull/132
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.19.0...1.20.0
refactor registerRoutes() & registerResource() in RouteRegistrar.php by @asharifineyestani in https://github.com/spatie/laravel-route-attributes/pull/
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.18.2...1.19.0
minor modify by @asharifineyestani in https://github.com/spatie/laravel-route-attributes/pull/113
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.18.1...1.18.2
🐛 Should filter null values when resolving group by @juliomotol in https://github.com/spatie/laravel-route-attributes/pull/111
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.18.0...1.18.1
Add support for Laravel 10 by @Nielsvanpach
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.17.0...1.18.0
Update README.md by @michaelnabil230 in https://github.com/spatie/laravel-route-attributes/pull/97
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.16.0...1.17.0
Add defaults as attribute by @stfndamjanovic in https://github.com/spatie/laravel-route-attributes/pull/95
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.15.0...1.16.0
Change Constructor syntax by @idanieldrew in https://github.com/spatie/laravel-route-attributes/pull/92
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.13.0...1.15.0
Implemented scoped bindings by @Radiergummi in https://github.com/spatie/laravel-route-attributes/pull/90
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.12.1...1.14.0
Nothing published for this version
- fix config file
Fix automated tests by @Tofandel in https://github.com/spatie/laravel-route-attributes/pull/84
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.11.0...1.12.0
feat: add Fallback attribute by @jaulz in https://github.com/spatie/laravel-route-attributes/pull/78
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.10.2...1.11.0
fix: make order of routes predictable by @jaulz in https://github.com/spatie/laravel-route-attributes/pull/79
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.10.1...1.10.2
Fixes implicit route model binding bug when using Resource attribute. by @samueljtaylor in https://github.com/spatie/laravel-route-attributes/pull/77
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.10.0...1.10.1
Namespaced controller directories by @danielsetreus in https://github.com/spatie/laravel-route-attributes/pull/69
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.9.1...1.10.0
- add support for Laravel 9
add support for the names parameter to the Resource attribute
fix: use \ReflectionAttribute::IS_INSTANCEOF
- add group attribute
add additional functionality to get domain from a config file
add apiResource parameter to Resource attribute
add support for resource controllers
do not register routes when they are cached
- remove facade
adds optional Wheres attribute on class and method level
add support for multi-verb routes
global middleware from config file will be registered first
change approach to handle routes with prefix
add new check to make sure TestClasses directory exists when running tests
- add middleware config option
- add Domain attribute
Domain attribute- initial release
Nothing published for this version
One column per quarter.