Laravel无法解析(创建)需要注入到另一个依赖中的依赖。
调试此问题的一个好办法是,错误发生在已编译的类中,因此请尝试运行命令。
php artisan clear-compiled
命令:php artisan clear-compiled错误:[ErrorException]类Illuminate \ Foundation \ Application的对象无法转换为字符串
-
您已更改与Laravel注入服务的方式有关的内容。尝试手动删除cache / compiled.php文件,然后重试。
-