[英]Laravel 5.4 composer error
I am facing a strange issue with Laravel 5.4.9
. 我在Laravel 5.4.9
面临一个奇怪的问题。 I tried to install a repository instead might have made a mess by installing it as a controller. 我尝试安装存储库,相反,通过将其安装为控制器可能使它一团糟。 Now when I type php artisan route:list
, I am getting this error: 现在,当我输入php artisan route:list
时,出现此错误:
[ReflectionException] Class App\\Http\\Controllers\\ProjectRepositoryInterface does not exist. [ReflectionException]类App \\ Http \\ Controllers \\ ProjectRepositoryInterface不存在。
This ProjectRepositoryInterface is in repository folder and it works normal. 此ProjectRepositoryInterface位于存储库文件夹中,并且可以正常工作。
I want to know where the controller classes are registered and stored? 我想知道控制器类在哪里注册和存储的吗? Are they stored in a file (like we bind the repository and interface in the app service provider file). 它们是否存储在文件中(例如我们将存储库和接口绑定到应用程序服务提供商文件中)。
How to get rid of this error? 如何摆脱这个错误?
运行composer dump-autoload
清除composer对旧文件的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.