1.命令安裝語言包
composer require "overtrue/laravel-lang:~3.0"
2.在config/app.php中替換locale.=>…爲zh-CN
3.在將config/app.php的
Illuminate\Translation\TranslationServiceProvider::class,
替換爲
Overtrue\LaravelLang\TranslationServiceProvider::class,
完美編譯
1.命令安裝語言包
composer require "overtrue/laravel-lang:~3.0"
2.在config/app.php中替換locale.=>…爲zh-CN
3.在將config/app.php的
Illuminate\Translation\TranslationServiceProvider::class,
替換爲
Overtrue\LaravelLang\TranslationServiceProvider::class,
完美編譯
$list = DB::table('posts') ->groupBy('user_id') ->selectRaw('user_id,sum(views) as total_views')