话不多说:先看报错信息
![7942449-a648e7f67a7b5e20.png](https://i-blog.csdnimg.cn/blog_migrate/93e2d27a6a7d83693fbac1385a7d3c49.webp?x-image-process=image/format,png)
error
解决办法:找到 /App/Providers/AppServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
// 加入这一行
\Illuminate\Support\Facades\Schema::defaultStringLength(191);
}
}