laravel在更改本地composer 配置后,如果出现 连接数据库错乱的问题,可以使用以下命令,清除一下缓存 php artisan cache:clear php artisan config:cache