问题
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