在执行完下面两条命令后报错
$ php artisan auth:make
$ php artisan auth:make

最后解决办法,在app\Providers\AppServiceProvider
的boot
方法里面加入入下代码:
public function boot() {
Schema::defaultStringLength(191);
}
在前面引用下Schema
use Illuminate\Support\Facades\Schema;
还不清楚是为什么,只做记录,以后再研究。
网友评论