failed to open stream: No such file or directory (Laravel)

只谈情不闲聊 提交于 2020-03-18 06:33:30

问题


I renamed my UsersController.php file to ~UsersController.php for testing purposes and everything was working fine until I renamed it back to UsersController.php and now I'm getting the below error

include(C:\xampp\htdocs\xxx\vendor\composer/../../app/Http/Controllers/~UsersController.php): failed to open stream: No such file or directory

i'm getting the above error when I want submit form to UsersController while I didn't change anything in my route file or views.


回答1:


Try php artisan config:cache php artisan config:clear composer dump-autoload -o



来源:https://stackoverflow.com/questions/53203254/failed-to-open-stream-no-such-file-or-directory-laravel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!