在使用命令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
}
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。