Package Data | |
---|---|
Maintainer Username: | bastiendonjon |
Maintainer Contact: | contact@bastien-donjon.fr (Bastien Donjon) |
Package Create Date: | 2015-11-02 |
Package Last Update: | 2015-11-07 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-14 15:14:05 |
Package Statistics | |
---|---|
Total Downloads: | 132 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 1 |
A tool for easy domain based localization in Laravel 5 applications.
This package is build for Laravel framework based applications.
You must modify your composer.json
file and run composer update
to include the latest version of the package in your project:
"require": {
"bastiendonjon/laravel-domain-localization": "1.0.*"
}
Or you can run the composer require
command from your terminal:
composer require bastiendonjon/laravel-domain-localization:1.0.x
Open app/config/app.php
and register the required service provider.
'providers' => [
BastienDonjon\LaravelDomainLocalization\Provider\DomainLocalizationServiceProvider:class,
]
Make config file :
php artisan vendor:publish"
Th Laravel Domain Localization get tld to switch locale. See config file to match tdl with locale.
For example, when you add the dutch locale fr
the user could access two different locales, using the following addresses:
http://example.com
http://example.fr