spatie/laravel-route-attributes
Auto register routes using PHP attributes
1.28.0
1.3M downloads/mo
#2553 most downloaded on Packagist
spatie/laravel-route-attributes
What this package is like to depend on
Last release 5 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
7 releases in the last 12 months
see the full history below
Release timeline
50 releases · Oct 2020 to Mar 2026Releases
latest 51-
1.28.006 Mar 2026 -
1.27.123 Feb 2026Release notes
Open source →What's Changed
- Fix Middleware cannot target method error by @freekmurze in #182
Full Changelog: 1.27.0...1.27.1
Release notes
Open source →What's Changed
- 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
-
1.27.022 Feb 2026Release notes
Open source →What's Changed
- Use spatie/php-attribute-reader for attribute resolution in #180
Full Changelog: 1.26.3...1.27.0
Release notes
Open source →What's Changed
- Use spatie/php-attribute-reader for attribute resolution in #180
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.3...1.27.0
-
1.26.311 Feb 2026Release notes
Open source →What's Changed
- Filter empty config values before passing to route group by @freekmurze in #179
Full Changelog: 1.26.2...1.26.3
Release notes
Open source →What's Changed
- 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
-
1.26.225 Nov 2025Release notes
Open source →What's Changed
- Prevent duplicated prefix on grouped resource routes by @nivseb in #175
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #174
Full Changelog: 1.26.1...1.26.2
Release notes
Open source →What's Changed
- Prevent duplicated prefix on grouped resource routes by @nivseb in https://github.com/spatie/laravel-route-attributes/pull/175
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/spatie/laravel-route-attributes/pull/174
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.26.1...1.26.2
-
1.26.124 Nov 2025Release notes
Open source →What's Changed
- Fix: Missing resource controller defined by groups by @nivseb in https://github.com/spatie/laravel-route-attributes/pull/173
New Contributors
- @nivseb made their first contribution 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
-
1.26.021 Nov 2025Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in #162
- Update issue template by @AlexVanderbist in #167
- Bump stefanzweifel/git-auto-commit-action from 5 to 7 by @dependabot[bot] in #169
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #164
- fix: register routes with domain before routes without domain by @giorgiopogliani in #170
New Contributors
- @AlexVanderbist made their first contribution in #167
- @giorgiopogliani made their first contribution in #170
Full Changelog: 1.25.2...1.26.0
Release notes
Open source →What's Changed
- 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
- Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-route-attributes/pull/167
- Bump stefanzweifel/git-auto-commit-action from 5 to 7 by @dependabot[bot] in https://github.com/spatie/laravel-route-attributes/pull/169
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/spatie/laravel-route-attributes/pull/164
- fix: register routes with domain before routes without domain by @giorgiopogliani in https://github.com/spatie/laravel-route-attributes/pull/170
New Contributors
- @AlexVanderbist made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/167
- @giorgiopogliani made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/170
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.2...1.26.0
-
1.25.208 Apr 2025Release notes
Open source →What's Changed
- Create RouteRegistrar with DI instead of literal instantiation by @gvlasov in https://github.com/spatie/laravel-route-attributes/pull/160
New Contributors
- @gvlasov made their first contribution 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
-
1.25.121 Feb 2025Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #154
- Laravel 12.x Compatibility by @laravel-shift in #155
Full Changelog: 1.25.0...1.25.1
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/154
- Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-route-attributes/pull/155
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.25.0...1.25.1
-
1.25.009 Dec 2024Release notes
Open source →What's Changed
- Add WithoutMiddleware option to route by @mikield in https://github.com/spatie/laravel-route-attributes/pull/151
New Contributors
- @mikield made their first contribution 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
-
1.24.018 Oct 2024Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/147
- Update README.md by @parijke in https://github.com/spatie/laravel-route-attributes/pull/148
- Typo in readme is fixed by closing single quote by @moe-mizrak in https://github.com/spatie/laravel-route-attributes/pull/149
- Make Route and Any repeatable attributes by @Tofandel in https://github.com/spatie/laravel-route-attributes/pull/150
New Contributors
- @parijke made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/148
- @moe-mizrak made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/149
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.23.0...1.24.0
-
1.23.027 Aug 2024Release notes
Open source →What's Changed
- Prevent resource method take precedence over normal method. by @hvsy in https://github.com/spatie/laravel-route-attributes/pull/146
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/142
- Default scope bindings setting by @przemyslaw-przylucki in https://github.com/spatie/laravel-route-attributes/pull/145
New Contributors
- @hvsy made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/146
- @przemyslaw-przylucki made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/145
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.22.2...1.23.0
-
1.22.215 Jul 2024Release notes
Open source →What's Changed
- Fix resource when has domain by @lloricode in https://github.com/spatie/laravel-route-attributes/pull/144
New Contributors
- @lloricode made their first contribution 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
-
1.22.124 Apr 2024Release notes
Open source →What's Changed
- Added WithTrashed attribute by @michaelhrivnak in https://github.com/spatie/laravel-route-attributes/pull/141
New Contributors
- @michaelhrivnak made their first contribution 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
-
1.22.024 Mar 2024Release notes
Open source →What's Changed
- Add support for
withoutScopedBindingstoScopeBindingsattribute. by @mikerockett in https://github.com/spatie/laravel-route-attributes/pull/139
New Contributors
- @mikerockett made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/139
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.21.0...1.22.0
- Add support for
-
1.21.029 Feb 2024Release notes
Open source →What's Changed
- Laravel 11.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-route-attributes/pull/136
New Contributors
- @laravel-shift made their first contribution 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
-
1.20.118 Dec 2023Release notes
Open source →What's Changed
- Fix missing quote in route-attributes.php by @nokimaro in https://github.com/spatie/laravel-route-attributes/pull/133
- Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/128
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/131
New Contributors
- @nokimaro made their first contribution 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
-
1.20.024 Nov 2023Release notes
Open source →What's Changed
- Allow to register multiple Get route declarations on one method by @rico in https://github.com/spatie/laravel-route-attributes/pull/132
New Contributors
- @rico made their first contribution 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
-
1.19.009 Aug 2023Release notes
Open source →What's Changed
- refactor registerRoutes() & registerResource() in RouteRegistrar.php by @asharifineyestani in https://github.com/spatie/laravel-route-attributes/pull/115
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/118
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/121
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/123
- Add patterns and not_patterns options to directories by @ejunker in https://github.com/spatie/laravel-route-attributes/pull/125
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.18.2...1.19.0
-
1.18.209 Mar 2023Release notes
Open source →What's Changed
- minor modify by @asharifineyestani in https://github.com/spatie/laravel-route-attributes/pull/113
- Add WhereIn attribute by @themrcatsu in https://github.com/spatie/laravel-route-attributes/pull/112
New Contributors
- @asharifineyestani made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/113
- @themrcatsu made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/112
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.18.1...1.18.2
-
1.18.106 Mar 2023Release notes
Open source →What's Changed
- 🐛 Should filter null values when resolving group by @juliomotol in https://github.com/spatie/laravel-route-attributes/pull/111
New Contributors
- @juliomotol made their first contribution 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
-
1.18.009 Feb 2023Release notes
Open source →What's Changed
- Add support for Laravel 10 by @Nielsvanpach
- Add Dependabot Automation by @patinthehat in https://github.com/spatie/laravel-route-attributes/pull/99
- Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/100
- Add PHP 8.2 to tests workflow by @patinthehat in https://github.com/spatie/laravel-route-attributes/pull/98
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/spatie/laravel-route-attributes/pull/105
New Contributors
- @patinthehat made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/99
- @dependabot made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/100
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.17.0...1.18.0
-
1.17.022 Nov 2022Release notes
Open source →What's Changed
- Update README.md by @michaelnabil230 in https://github.com/spatie/laravel-route-attributes/pull/97
- Add WhereUlid shorthand where by @rodrigopedra in https://github.com/spatie/laravel-route-attributes/pull/96
New Contributors
- @michaelnabil230 made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/97
- @rodrigopedra made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/96
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.16.0...1.17.0
-
1.16.011 Nov 2022Release notes
Open source →What's Changed
- Add defaults as attribute by @stfndamjanovic in https://github.com/spatie/laravel-route-attributes/pull/95
New Contributors
- @stfndamjanovic made their first contribution 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
-
1.15.001 Oct 2022Release notes
Open source →What's Changed
- Change Constructor syntax by @idanieldrew in https://github.com/spatie/laravel-route-attributes/pull/92
- Resource Attribute extended by @sirmathays in https://github.com/spatie/laravel-route-attributes/pull/93
New Contributors
- @idanieldrew made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/92
- @sirmathays made their first contribution in https://github.com/spatie/laravel-route-attributes/pull/93
Full Changelog: https://github.com/spatie/laravel-route-attributes/compare/1.13.0...1.15.0
-
1.14.024 Aug 2022Release notes
Open source →What's Changed
- 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
-
1.13.0no dateNothing published for this version
-
1.12.109 Aug 2022 -
1.12.009 Aug 2022Release notes
Open source →What's Changed
- Fix automated tests by @Tofandel in https://github.com/spatie/laravel-route-attributes/pull/84
- Add fileinfo extension by @Tofandel in https://github.com/spatie/laravel-route-attributes/pull/85
- feat: add grouped configurations and improve tests by @Tofandel in https://github.com/spatie/laravel-route-attributes/pull/83
New Contributors
- @Tofandel made their first contribution 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
-
1.11.018 May 2022Nothing published for this version
-
1.10.218 May 2022Nothing published for this version
-
1.10.128 Apr 2022Nothing published for this version
-
1.10.025 Feb 2022Nothing published for this version
-
1.9.119 Jan 2022 -
1.9.004 Oct 2021 -
1.8.120 Sep 2021 -
1.8.017 Sep 2021 -
1.7.031 Aug 2021 -
1.6.015 Aug 2021 -
1.5.015 Aug 2021 -
1.4.205 Jul 2021 -
1.4.109 Jun 2021 -
1.4.008 Apr 2021 -
1.3.003 Mar 2021 -
1.2.315 Feb 2021 -
1.2.212 Feb 2021 -
1.2.107 Feb 2021Release notes
Open source →- add new check to make sure TestClasses directory exists when running tests (#20)
-
1.2.019 Dec 2020 -
1.1.030 Nov 2020 -
1.0.029 Oct 2020 -
0.0.128 Oct 2020Nothing published for this version