PackageTrack
Sign in Get early access

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 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 51
  1. 1.28.0 06 Mar 2026
    Release notes

    What's Changed

    • Laravel 13.x Compatibility
    Open source →
    Release notes

    What's Changed

    • Laravel 13.x Compatibility
    Open source →
  2. 1.27.1 23 Feb 2026
    Release notes

    What's Changed

    Full Changelog: 1.27.0...1.27.1

    Open source →
    Release notes

    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

    Open source →
  3. 1.27.0 22 Feb 2026
    Release notes

    What's Changed

    • Use spatie/php-attribute-reader for attribute resolution in #180

    Full Changelog: 1.26.3...1.27.0

    Open source →
    Release notes

    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

    Open source →
  4. 1.26.3 11 Feb 2026
    Release notes

    What's Changed

    • Filter empty config values before passing to route group by @freekmurze in #179

    Full Changelog: 1.26.2...1.26.3

    Open source →
    Release notes

    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

    Open source →
  5. 1.26.2 25 Nov 2025
    Release notes

    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

    Open source →
    Release notes

    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

    Open source →
  6. 1.26.1 24 Nov 2025
    Release notes

    What's Changed

    • Fix: Missing resource controller defined by groups by @nivseb in #173

    New Contributors

    Full Changelog: 1.26.0...1.26.1

    Open source →
    Release notes

    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

    Open source →
  7. 1.26.0 21 Nov 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.25.2...1.26.0

    Open source →
    Release notes

    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

    Open source →
  8. 1.25.2 08 Apr 2025
    Release notes

    What's Changed

    • Create RouteRegistrar with DI instead of literal instantiation by @gvlasov in #160

    New Contributors

    Full Changelog: 1.25.1...1.25.2

    Open source →
    Release notes

    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

    Open source →
  9. 1.25.1 21 Feb 2025
    Release notes

    What's Changed

    Full Changelog: 1.25.0...1.25.1

    Open source →
    Release notes

    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

    Open source →
  10. 1.25.0 09 Dec 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.24.0...1.25.0

    Open source →
    Release notes

    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

    Open source →
  11. 1.24.0 18 Oct 2024
    Release notes

    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

    Open source →
  12. 1.23.0 27 Aug 2024
    Release notes

    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

    Open source →
  13. 1.22.2 15 Jul 2024
    Release notes

    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

    Open source →
  14. 1.22.1 24 Apr 2024
    Release notes

    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

    Open source →
  15. 1.22.0 24 Mar 2024
    Release notes

    What's Changed

    • Add support for withoutScopedBindings to ScopeBindings attribute. 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

    Open source →
  16. 1.21.0 29 Feb 2024
    Release notes

    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

    Open source →
  17. 1.20.1 18 Dec 2023
    Release notes

    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

    Open source →
  18. 1.20.0 24 Nov 2023
    Release notes

    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

    Open source →
  19. 1.19.0 09 Aug 2023
    Release notes

    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

    Open source →
  20. 1.18.2 09 Mar 2023
    Release notes

    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

    Open source →
  21. 1.18.1 06 Mar 2023
    Release notes

    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

    Open source →
  22. 1.18.0 09 Feb 2023
    Release notes

    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

    Open source →
  23. 1.17.0 22 Nov 2022
    Release notes

    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

    Open source →
  24. 1.16.0 11 Nov 2022
    Release notes

    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

    Open source →
  25. 1.15.0 01 Oct 2022
    Release notes

    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

    Open source →
  26. 1.14.0 24 Aug 2022
    Release notes

    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

    Open source →
  27. 1.13.0 no date

    Nothing published for this version

  28. 1.12.1 09 Aug 2022
    Release notes
    • fix config file
    Open source →
  29. 1.12.0 09 Aug 2022
    Release notes

    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

    Open source →
  30. 1.11.0 18 May 2022

    Nothing published for this version

  31. 1.10.2 18 May 2022

    Nothing published for this version

  32. 1.10.1 28 Apr 2022

    Nothing published for this version

  33. 1.10.0 25 Feb 2022

    Nothing published for this version

  34. 1.9.1 19 Jan 2022
    Release notes
    • add support for Laravel 9
    Open source →
  35. 1.9.0 04 Oct 2021
    Release notes
    • add support for the names parameter to the Resource attribute (#56)
    Open source →
  36. 1.8.1 20 Sep 2021
    Release notes
    • fix: use \ReflectionAttribute::IS_INSTANCEOF (#55)
    Open source →
  37. 1.8.0 17 Sep 2021
    Release notes
    • add group attribute (#54)
    Open source →
  38. 1.7.0 31 Aug 2021
    Release notes
    • add additional functionality to get domain from a config file (#50)
    Open source →
  39. 1.6.0 15 Aug 2021
    Release notes
    • add apiResource parameter to Resource attribute (#49)
    Open source →
  40. 1.5.0 15 Aug 2021
    Release notes
    • add support for resource controllers
    Open source →
  41. 1.4.2 05 Jul 2021
    Release notes
    • do not register routes when they are cached (#38)
    Open source →
  42. 1.4.1 09 Jun 2021
    Release notes
    • remove facade
    Open source →
  43. 1.4.0 08 Apr 2021
    Release notes
    • adds optional Wheres attribute on class and method level (#31)
    Open source →
  44. 1.3.0 03 Mar 2021
    Release notes
    • add support for multi-verb routes
    Open source →
  45. 1.2.3 15 Feb 2021
    Release notes
    • global middleware from config file will be registered first (#24)
    Open source →
  46. 1.2.2 12 Feb 2021
    Release notes
    • change approach to handle routes with prefix (#23)
    Open source →
  47. 1.2.1 07 Feb 2021
    Release notes
    • add new check to make sure TestClasses directory exists when running tests (#20)
    Open source →
  48. 1.2.0 19 Dec 2020
    Release notes
    • add middleware config option
    Open source →
  49. 1.1.0 30 Nov 2020
    Release notes
    • add Domain attribute
    Open source →
  50. 1.0.0 29 Oct 2020
    Release notes
    • initial release
    Open source →
  51. 0.0.1 28 Oct 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive