我的laravel框架版本是8.0.0
再通过composer require caouecs/laravel-lang:~3.0
安装语言包的时候遇到了Could not find package overtrue/laravel-lang. It was however found via repository search, which indicates a consistency issue with the reposit
ory.这个问题
解决办法:先切换一下composer镜像
composer config -g repo.packagist composer https://packagist.org
再执行composer require caouecs/laravel-lang:~3.0 解决啦