| Package Data | |
|---|---|
| Maintainer Username: | didierdemaeyer |
| Maintainer Contact: | didierdemaeyer@telenet.be (Didier De Maeyer) |
| Package Create Date: | 2016-02-12 |
| Package Last Update: | 2016-05-10 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-05 15:04:03 |
| Package Statistics | |
|---|---|
| Total Downloads: | 255 |
| Monthly Downloads: | 2 |
| Daily Downloads: | 0 |
| Total Stars: | 8 |
| Total Watchers: | 4 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
This Laravel package will make domain.com/{locale}/your/routes available to your website.
Routes that don't need a locale prefix can be added to the 'skip_locales' array in config/app.php.
Require the package using composer:
composer require didierdemaeyer/laravel-multiple-locales "1.*"
Add the package to the 'providers' array in config/app.php:
'providers' => [
...
DidierDeMaeyer\MultipleLocales\Providers\MultipleLocalesServiceProvider::class,
],
Run php artisan multiple-locales:install to install the package.
Update the locales and skip_locales array with your locales in config/app.php:
'locales' => ['en' => 'English', 'nl' => 'Dutch'],
'skip_locales' => ['admin', 'api'],
And you're done! Happy translating!
If you want to remove the package, just run: php artisan multiple-locales:remove and it will remove the published code from your package and reset your RouteServiceProvider.php.