安装laracms出现的问题

按照手册laracms步骤一步一步安装时.在php artisan migrate时.报错

需要升级mysql 

2.报错

 这时候打开项目下的app\Providers\AppServiceProvider.php 文件 
引入 use Illuminate\Support\Facades\Schema; 
然后在 boot 方法添加一行代码 
Schema::defaultStringLength(191); 
重新执行迁移即可

 

猜你喜欢

转载自blog.csdn.net/lixiaozhen2010/article/details/88307158