运行php artisan migrate报错
PDOException:: (“SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes”)
解决办法:
在app/Providers/AppSeviceProvider.php文件内添加
use Illuminate\Support\Facades\Schema;
foot方法内添加
Schema::defaultStringLength(191);
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Schema;
use