laravel use Chinese authentication package

laravel default is English verification in the country we generally use Chinese verification, the general this operation on it

The first step: on GitHub was written specifically for this purpose an expansion pack -  Overture / Laravel-lang  to default Laravel provide prompt information to add multiple language versions of translation.

Installation by composer

$ composer require "overtrue/laravel-lang:~3.0"

 Step two: Replace config / app.config classes

Will: 
Illuminate \ - Search.com \ TranslationServiceProvider :: class, 
replaced: 
Overture \ LaravelLang \ TranslationServiceProvider :: class,

  The third step: change the config / app.config language category

config/app.php

<?php

return [
    .
    .
    .
    'locale' => 'zh-CN',
    .
    .
    .
];    

  effect:

Guess you like

Origin www.cnblogs.com/fogwang/p/11410078.html