php artisan migrate提示
D:\phpstudy_pro\WWW\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501
PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes")
解决方案
增加这两行
use Illuminate\Support\Facades\Schema; //头部
Schema::defaultStringLength(191); //boot函数里面