SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
2018年4月23日打开app\Providers\AppServiceProvider.php
1 2 3 4 5 6 |
use Illuminate\Support\Facades\Schema; //引入 public function boot() { Schema::defaultStringLength(191); //设置长度 } |