laravel 找不到类“App\Providers\AppServiceProvider”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33297358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Class 'App\Providers\AppServiceProvider' not found
提问by Muhsin Keloth
I have changed my application by using command
我使用命令更改了我的应用程序
php artisan app:name [app_name]
.
php artisan app:name [app_name]
.
Then, when I try to perform other actions using following artisan commands,
然后,当我尝试使用以下工匠命令执行其他操作时,
php artisan down
php artisan up
php artisan config:cache
I got the following error:
我收到以下错误:
PHP Fatal error: Class 'App\Providers\AppServiceProvider' not found
How can I solve it?
我该如何解决?
回答by Muhsin Keloth
It is working after Clearing bootstrap/cache
directory.
它在清除bootstrap/cache
目录后工作 。