This plugin is creating localized route groups. Sets application locale based on url...
composer require hlacos/route-localization
php artisan vendor publish --provider="BAP\RouteLocalization\RouteLocalizationServiceProvider" --tag="config"
- supported-locales: array of the supported locales
- use_prefix_on_default_locale: set true if you want to use locale segment in url for default language as well
- redirect_to_default_locale: if it is true based on previous configuration, it will redirect between prefixed and not prefixed default language url-s. If you use prefixed default url and locale segment is missing (/* (301)-> /[default-locale]/), or you not using prefix but in the given url is contains locale prefix (/[default-locale/] (301)-> /*).
BAP\RouteLocalization\RouteLocalizationServiceProvider::class