bastiendonjon/laravel-domain-localization
最新稳定版本:v1.0.0
Composer 安装命令:
composer require bastiendonjon/laravel-domain-localization
包简介
Laravel 5 domain localization
README 文档
README
A tool for easy domain based localization in Laravel 5 applications.
Installation
This package is build for Laravel framework based applications.
Requirements
- PHP >= 5.4.0
- Laravel 5+
Composer installation
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
Service provider
Open app/config/app.php and register the required service provider.
'providers' => [ BastienDonjon\LaravelDomainLocalization\Provider\DomainLocalizationServiceProvider:class, ]
Make config file :
php artisan vendor:publish"
Usage
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
统计信息
- 总下载量: 134
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-11-02