Laravel 8 Schema because the name is already in use
最近在项目里面用composer install安装依赖时候报的错误:In AppServiceProvider.php line 7: Cannot use Illuminate\Support\Facades\Schema as Schema because the name is already in use。
提供一个解决思路上面的报错信息翻译出来就是:无法将Illuminate\Support\Facades\Schema用作架构,因为该名称已在使用中(大意就是错误的原因就是Schema 这个命名重复了。)找到AppServiceProvider.php文件打开。
果然重复了一行。删除多出的那一行。
重新composer install一下。

搞定。