NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #3686 most downloaded on Packagist
Auto register routes using PHP attributes
Last release 7 months ago
06 Mar 2026
Release timing varies
gaps range from 2 weeks to 8 months
Most releases are documented
notes for 45 of 51 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
51 releases · first in 2020
What's Changed Laravel 13.x Compatibility
Fix Middleware cannot target method error by @freekmurze in #182
Full Changelog: 1.27.0...1.27.1
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.27.0...1.27.1
One column per quarter.
Use spatie/php-attribute-reader for attribute resolution in #180
Full Changelog: 1.26.3...1.27.0
Filter empty config values before passing to route group by @freekmurze in #179
Full Changelog: 1.26.2...1.26.3
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 #175
Full Changelog: 1.26.1...1.26.2
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 #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 #162
Full Changelog: 1.25.2...1.26.0
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 #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 #154
Full Changelog: 1.25.0...1.25.1
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.0...1.25.1
Add WithoutMiddleware option to route by @mikield in #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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
- 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
Your coding agent can read these notes before it upgrades. Set up the MCP server →