axn/laravel-laroute
Laravel Laroute exposes your named Laravel routes to JavaScript, letting front-end code generate URLs by route name instead of hardcoded paths, keeping links consistent as routes evolve.
aaronlord/laroute and this extension exist to make the server-side route() helper available in JavaScript, so frontend URLs are generated from route names instead of hardcoded strings. That is a genuine product decision: it determines whether renaming a route in routes/web.php is a safe refactor or a silent 404.aaronlord/laroute and AXN-Informatique/laravel-laroute. That's a maintenance cost to weigh against the feature value.Consider it only in a narrow set of conditions:
aaronlord/laroute, are on an older Laravel version it no longer supports cleanly, and this extension fixes exactly that. In that case it's a drop-in patch, and MIT licensing lets you pin it.Look elsewhere — almost always — because:
tightenco/ziggy solves the same problem, ships a Blade directive, supports route filtering, and is actively maintained. For a new or healthy codebase, this is a straightforward substitution.To executives: The capability is worth having — it keeps frontend URLs in sync with backend route definitions and eliminates a common class of broken-link and stale-URL bugs. This specific package is not worth adopting. It is archived, has no meaningful user base, no maintainer activity since early 2022, and no downstream dependents — meaning no one else is testing it against new Laravel releases. Adopting it transfers maintenance risk onto us for a benefit we can get from a well-maintained alternative or a small in-house implementation. Recommendation: do not add it as a dependency; capture the requirement and satisfy it with Ziggy or an internal generator.
To engineering: The package is a thin extension of aaronlord/laroute, archived and effectively unmaintained, with zero dependents — so we'd be the sole consumer and sole maintainer. The underlying idea (generate a JS route() helper from named routes, with filtering) is sound and small. Two viable paths: standardize on Ziggy, which covers filtering and parameter handling and is actively maintained; or lift the generation logic in-house (~a few hundred lines) under MIT and own it directly, which removes the dependency entirely and lets us enforce our own allowlist of exposed routes. Either path clears the security question of which routes reach the client, which is the part actually worth designing carefully. Avoid chaining two levels of unmaintained code when the alternative is this cheap.
How can I help you explore Laravel packages today?