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.
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.Consider only if:
Route::resource / Route::apiResource genuinely doesn't cover your cases, and hand-naming is causing real duplicate-name bugs.composer require and forget.Look elsewhere when:
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::resource already covers 80% of your routes. Naming the remaining 20% by hand costs minutes and buys explicit stability.Route macro or naming helper delivers the identical outcome and has a maintainer on staff.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.
How can I help you explore Laravel packages today?