在使用命令php artisan migrate生成表的过程中报错
解决方法:
/project/app/Providers/AppServiceProvider.php 中boot()方法修改如下:
public function boot() {
Schema::defaultStringLength(191); //Solved by increasing StringLength
}
在使用命令php artisan migrate生成表的过程中报错
解决方法:
/project/app/Providers/AppServiceProvider.php 中boot()方法修改如下:
public function boot() {
Schema::defaultStringLength(191); //Solved by increasing StringLength
}