原文地址:https://github.com/z-song/laravel-admin
安装过程出现两个问题:
解决办法:找到对应的表,删除。此处是users表
原因是第一次没成功,后面执行就会这样。
解决办法:升级mysql 5.5.3以上。
或者手动配置迁移命令migrate
生成的默认字符串长度,在AppServiceProvider
中调用Schema::defaultStringLength
方法来实现配置
use IlluminateSupportFacadesSchema; public function boot() { Schema::defaultStringLength(191); }
OK