xactsystems/js-routing-bundle
Exposes your Laravel named routes to JavaScript, generating a client-side routing helper so frontend code can build URLs from route names and parameters instead of hardcoded paths. Keeps route definitions in one place and reduces drift between backend routes and frontend links.
Adopt when:
Look elsewhere or defer when:
For executives: A new major version (v5.0.0) brings this package current with Symfony 6/7 and PHP 8 — the supported, security-patched runtime generation. Staying on the prior version means running on frameworks approaching end-of-support, which is a compliance and security exposure, not just a technical preference. Cost is a bounded upgrade task, not a rewrite, provided we haven't customized the package's internals; engineering needs a short spike to confirm that.
For engineering: This is a breaking major. Three things move: directory layout, configuration ownership (now via the bundle class), and class constructors (PHP 8 promotion). Any subclass, decorator, service override, or hardcoded internal path is a break. Config keys and package.json/tooling references were regenerated via cook, so diff your published config against the new defaults rather than assuming parity. Treat the upstream note about unfixed test mocks as a real risk: pin to ^5.0 only after smoke-testing our integration path, and be prepared to carry a local patch or contribute the mock fixes upstream. Recommend a timeboxed spike to inventory our touchpoints before committing to a migration date.
How can I help you explore Laravel packages today?