朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

初始化的laravel-admin框架,界面默认是英文,配置中文的步骤

  1. 通过 composer 安装语言包:
    composer require "overtrue/laravel-lang:~3.0"
  2. 将项目文件 config/app.PHP 中的
    Illuminate\Translation\TranslationServiceProvider::class 替换为
    Overtrue\LaravelLang\TranslationServiceProvider::class
  3. 修改项目文件 config/app.php:
    'locale' => 'en' 修改为 'locale' => 'zh-CN'
  4. 在 .env 文件中添加语言:
    APP_LOCALE=zh-CN
  5. 在项目文件 bootstrap/app.php 中添加下面这行
    $app->register(Overtrue\LaravelLang\TranslationServiceProvider::class);
赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 初始化的laravel-admin框架,界面默认是英文,配置中文的步骤

评论 97

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #105
  2. #104
  3. #103

    Hi there, the whole thing is going sound here and ofcourse every
    one is sharing data, that’s actually good, keep up writing.

    Also visit my homepage :: tracfone special

    tracfone special1周前 (11-26)回复
  4. #102

    lasix blood thinner vepesid levocetirizine 5 mg tablet vs cetirizine 10mg The FDA says it performed 5, 500 inspections of medical device and drug facilities in the 2012 fiscal year

    Inpuncmut2周前 (11-22)回复
  5. #101

    First, the inventors examined whether pre or post incubation with RX 3117 enhanced the effect of radiation ivermectine 6mg

    Voppido2周前 (11-20)回复
  6. #100

    Gesamaf interactions clomiphene citrate The song is off MayerГў s Гў Paradise ValleyГў album, which debuts Aug

    refeInnob3周前 (11-15)回复
  7. #99

    doxycycline cats 4 in PM0 and 21 1

    Apabili3周前 (11-15)回复