Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Route Names Laravel Package

dragon-code/laravel-route-names

Automatically generates names for your Laravel routes based on controller classes and methods, so you never name routes by hand. Keeps naming consistent across your app, makes refactoring safer, and works alongside your existing route definitions.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Convention enforcement vs. documentation. The package derives route names from controller + action, so naming consistency is guaranteed by construction instead of by a style guide, a lint rule, or code-review vigilance. That's a real DX decision: spend review attention on naming, or make it impossible to get wrong.
  • Build vs. buy vs. borrow. This is a borrow candidate, not a buy. The logic is a thin string-derivation layer over Laravel's route registrar; the value is the convention, not the code. Maintenance signals (~25 stars, zero dependents, no feature roadmap, releases limited to compatibility and README upkeep) still make "take the dependency" the weaker call for anything long-lived — but 2.2.0 shows someone is still shipping Laravel-version support, so the "it will block our next framework upgrade" argument is now weaker than it was.
  • Roadmap sizing for internal tooling. It removes a recurring papercut on teams that onboard engineers frequently or maintain many small Laravel services — worth a spike-sized allocation, not a roadmap line item.
  • MVP / internal-tool scoping. For throwaway or admin-only apps, auto-naming collapses the route file to near-zero boilerplate, letting you defer the naming-policy decision until route names become a real contract.
  • Refactor policy: are route names a public contract or an implementation detail? This is the crux. If names are derived, renaming a controller silently renames routes — a feature (names never drift) or an incident (every route() call site breaks), depending on how you've scoped it. That's a decision the PM should make explicitly, not inherit from a package.
  • Explicitly not supported: no user-facing URL changes, no performance impact, no reduction in route count. Don't let this enter a roadmap framed as anything beyond hygiene.

When to Consider This Package

Consider only if:

  • Greenfield or small internal project where route names are never consumed outside the app — no signed URLs in emails, no route names persisted in queues, no frontend hardcoding them, no API contract referencing them.
  • The route surface is modest and controller-per-action is already the house style.
  • Route::resource / Route::apiResource genuinely doesn't cover your cases, and hand-naming is causing real duplicate-name bugs.
  • You intend to fork or vendor it. Treat the repository as a reference implementation and a spec, not a dependency you composer require and forget.

Look elsewhere when:

  • Maintenance is thin and reactive. 2.2.0 is a compatibility bump (Laravel 13) plus README/banner churn — no new capability, no deprecations, no security surface change. That is a healthy sign for a dead-simple package (someone is watching the framework matrix), but it is not a support commitment: no SLA, no triage process, no guarantee the next Laravel major gets the same treatment. Budget for the possibility that you become the maintainer.
  • An existing app has route() calls scattered across Blade, tests, notifications, and JS. Derived names become a breaking-change surface with no deprecation path — the blast radius of a controller rename is unbounded.
  • Route names are an external contract — webhooks, deep links, partner integrations, analytics dashboards keyed on route names.
  • Route::resource already covers 80% of your routes. Naming the remaining 20% by hand costs minutes and buys explicit stability.
  • You want this capability with an owner. A ~50-line internal Route macro or naming helper delivers the identical outcome and has a maintainer on staff.

How to Pitch It (Stakeholders)

Executives: This is developer-experience hygiene, not a product capability — no user-facing impact, no revenue lever, no competitive differentiation. The only decision worth executive time is whether codifying route-naming conventions is worth roughly a day of engineering effort. Recommendation: still do not adopt the dependency. Release 2.2.0 is a Laravel 13 compatibility bump and README housekeeping; it keeps the package installable but does not change its adoption profile (tiny install base, no ecosystem, no support commitment). Adding it trades a small convenience for a long-term ownership question. If naming friction is real, we copy the pattern in-house.

Engineering: The package generates route names from controller and action, so ->name() calls disappear and names can never drift from the code. The trade-off is implicit coupling: a controller rename silently changes the route name, producing failures that are clean at compile time and loud only at runtime. 2.2.0 only adds Laravel 13 support and updates README imagery — no API change, no migration work, nothing that alters the evaluation. Suggested path is unchanged: implement a Route macro or small naming helper in-house (~50 lines) using the package as a specification, keep explicit names for anything referenced outside the route file, and add a test that asserts the generated names so a refactor can't silently break call sites. If we do choose to depend on it, pin the version and treat the Laravel-major upgrade as a tracked risk item.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource