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 Laroute Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Whether to expose named Laravel routes to the browser at all. Both 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.
  • Route surface as a security boundary. Once route metadata is shipped to the client, anything in it is public. The decision of "which named routes may the frontend see?" is a product/security call, not just a config file — it governs whether admin or internal endpoints leak their paths and parameters.
  • Frontend architecture roadmap. This package is only meaningful for server-rendered Blade pages with sprinkled JS, or a Blade-hosted SPA. If the roadmap points toward an API-first, Inertia, or fully decoupled frontend, the need it serves largely evaporates — an important input to sequencing the frontend migration.
  • Build vs. buy vs. vendor. MIT licensing means the option set is broader than "adopt or don't": you can fork the generator, copy the ~200–300 lines of logic in-house, or standardize on a maintained equivalent. That's a real build/buy trade-off with a small, well-understood scope.
  • Migration risk budgeting. Because this package is an extension of another package, adopting it means inheriting a two-level dependency chain — you must track both aaronlord/laroute and AXN-Informatique/laravel-laroute. That's a maintenance cost to weigh against the feature value.
  • Legacy support commitments. If a product line still runs on older Laravel versions where the upstream package is broken, this extension may be the only patch available. That informs the decision of whether to keep the legacy line alive or schedule its decommission.

When to Consider This Package

Consider it only in a narrow set of conditions:

  • You already depend on 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.
  • You need a specific behavior this fork adds that no maintained alternative offers — and you have verified that by reading the source, not the README, since the project is archived.
  • You are prepared to vendor or fork it into your own repository, accept ownership of the code, and treat it as internal rather than as an external dependency.

Look elsewhere — almost always — because:

  • It is archived, with a last release in March 2022 and essentially no community. Six stars and zero dependents mean no security review, no bug reports, no compatibility fixes for current or future Laravel versions. You will be the only maintainer in practice.
  • A maintained equivalent exists. 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.
  • The feature is small enough to own outright. If the route-exposure logic is only a few hundred lines, in-housing it removes dependency risk at low cost and lets you shape filtering and parameter handling to your own needs.
  • Your frontend doesn't need it. API-first, Inertia, or fully decoupled SPA architectures do not require client-side Laravel URL generation, and the package adds nothing there.
  • You have CI discipline that makes hardcoded URLs cheap. If route renames are rare and covered by end-to-end tests, the value proposition weakens considerably.

How to Pitch It (Stakeholders)

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.

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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource