这是由于在配置文件中加入了自己的一些配置:
在AppServiceProvider中:

使用php artisan config:cache时,生成的config.php(位置:app/bootstrap/cache/config.php)有这样的内容:

所以,再次执行php artisan config:cache时会报下面的错误:

解决:
在AppServiceProvider中:

这次再使用php artisan config:cache就好了(注意要删除之前的config.php)
