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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 12:33:39  来源:igfitidea点击:

Class 'App\Providers\AppServiceProvider' not found

phplaravellaravel-5

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

enter image description here

在此处输入图片说明

How can I solve it?

我该如何解决?

回答by Muhsin Keloth

It is working after Clearing bootstrap/cachedirectory.

它在清除bootstrap/cache目录后工作 。