chinleung/laravel-multilingual-routes
Register multilingual Laravel routes automatically from a single definition. Generates locale-prefixed URLs (optionally including default locale) and can auto-detect/set locale via middleware. Configure supported locales and keep route naming consistent across languages.
Architecture fit: The package continues to extend Laravel's routing system via the Route facade and leverages core translation files for route segment translations. It integrates with middleware for automatic locale detection, maintaining strong alignment with Laravel's standard patterns. The new Laravel v13 support (v6.0.0) ensures compatibility with the latest framework version, including its updated routing and middleware systems, while preserving backward compatibility with existing implementations.
Integration feasibility: High. The package’s design remains consistent with Laravel’s conventions, and the addition of v13 support reduces technical debt for teams upgrading. The middleware-based locale detection and translation-aware routing remain seamless to adopt.
Technical risk:
Key questions:
App\Middleware\HandleIncomingRequest)?Stack fit: Optimal for Laravel v13 applications, with explicit support for its routing system, middleware stack, and translation improvements. For pre-v13 systems, a parallel testing phase is recommended to validate compatibility.
Migration path:
DetermineCurrentLocale).Route::multilingual() if renamed).Compatibility:
spatie/laravel-translatable or laravel-localization if used alongside.Sequencing:
Route::cascade()).composer.json dependency and run composer update.php artisan route:list and load testing.Maintenance:
Support:
Scaling:
Failure modes:
Route::cache() adjustments in the package’s internals.--strict mode in PHP 8.1+ to catch calls.Ramp-up:
Route::prefix() interactions).How can I help you explore Laravel packages today?