无法打开流:没有这样的文件或目录(Laravel) [英] failed to open stream: No such file or directory (Laravel)
问题描述
出于测试目的,我将 UsersController.php
文件重命名为〜UsersController.php
,直到一切正常我将其重命名为 UsersController.php
,现在出现以下错误
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):
无法打开流:没有这样的文件或目录
我在遇到上述错误时将表单提交给 UsersController
,而我未更改路由文件或视图中的任何内容。
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.
推荐答案
尝试
php artisan config:cache
php artisan config:clear
composer dump-autoload -o
这篇关于无法打开流:没有这样的文件或目录(Laravel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!