laravel5.7语言包更换:
- composer require "overtrue/laravel-lang:~3.0"
- 将项目文件
config/app.php
中
Illuminate\Translation\TranslationServiceProvider::class 替换为 Overtrue\LaravelLang\TranslationServiceProvider::class
'locale' => 'zh-CN',
数据库迁移报错:
Illuminate\Database\QueryException : SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'password_resets' already exists (SQL: create table `password_resets` (`email` varchar(255) not null, `token` varchar(255) not null, `created_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
MySQL 版本低于5.7.7, 修改项目/app/Providers/AppServiceProvider.php
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
.....
public function boot()
{
Schema::defaultStringLength(191);
}
}