1.安装扩展包
composer require "overtrue/laravel-lang:~3.0"
2.修改配置文件config/app.php
(1)
//Illuminate\Translation\TranslationServiceProvider::class, 此句替换为下面的
Overtrue\LaravelLang\TranslationServiceProvider::class,
(2)
'timezone' => 'Asia/Shanghai',
'locale' => 'zh-CN',
3.预览效果