SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

编辑

AppServiceProvider.php

添加:

useIlluminate<span class="hljs-selector-tag">Support<span class="hljs-selector-tag">Facades<span class="hljs-selector-tag">Schema;

publicfunctionboot() { Schema::defaultStringLength(191); }