didierdemaeyer/laravel-multiple-locales 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

didierdemaeyer/laravel-multiple-locales

Composer 安装命令:

composer require didierdemaeyer/laravel-multiple-locales

包简介

Multiple Locales package for Laravel 5.2

README 文档

README

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.

Installation

Step 1: Require the package

Require the package using composer:

composer require didierdemaeyer/laravel-multiple-locales "1.*"

Step 2: Register the package

Add the package to the 'providers' array in config/app.php:

'providers' => [
    ...
    DidierDeMaeyer\MultipleLocales\Providers\MultipleLocalesServiceProvider::class,
],

Step 3: Install and setup your locales

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.

统计信息

  • 总下载量: 256
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固