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.
Start by treating v5.0.0 as a breaking upgrade, not a drop-in patch. First inspect the package’s composer.json for PHP and Symfony constraints, then locate the new bundle class and the restructured source directories. The bundle class is now the primary configuration entry point, so read it before touching config files.
Minimal steps:
composer require vendor/package:^5.0
composer dump-autoload
*Bundle.php.getContainerExtension() / config tree usage.cook is part of your workflow, then review the diff carefully:
# only if your project uses cook
cook update
First use case: wire the package through its bundle class, publish or update its config, then make one real call through the package in a feature test. Do not start by rewriting all mocks; first verify the container boots and config is resolved.
Use the bundle class as the source of truth for configuration. In a Symfony-oriented integration, register the bundle and let its extension load config. In a Laravel integration, keep the Laravel service provider thin and bind package services explicitly rather than duplicating config logic.
Recommended patterns:
$this->app->bind(
\Vendor\Package\Contract\Client::class,
\Vendor\Package\Client::class
);
cook updated the package config, compare it with your published config before committing. Keep app-specific values in your app config, not in vendor files.cook modified package.json, treat it as a separate commit and confirm it did not overwrite app-specific scripts.A practical workflow:
composer dump-autoload alone will not find string-based service references.config/package.php, confirm the bundle class does not expect a different tree or parameter shape.cook updates need review. Automatically updated config and package.json files can overwrite local customizations. Diff before committing.php artisan optimize:clear
composer why-not vendor/package 5.0 if installation fails, and verify your app’s Symfony components are on 6 or 7 as required.How can I help you explore Laravel packages today?