1. 安裝中文提示包
$ composer require "overtrue/laravel-lang:~3.0"
2.註冊服務提供者:config/app.php
'providers' => [
//Illuminate\Translation\TranslationServiceProvider::class,
Overtrue\LaravelLang\TranslationServiceProvider::class,
]
3.修改語言:config/app.php
//把'locale' => 'en'改為
'locale' => 'zh-CN',
本作品採用《CC 協議》,轉載必須註明作者和本文連結