Php 类别';照亮\Http\Response';找不到

Php 类别';照亮\Http\Response';找不到,php,laravel,composer-php,Php,Laravel,Composer Php,我的应用程序后端突然停止工作,在laravel.log中返回500 HTTP错误和此错误: [2020-09-16 12:28:15] local.ERROR: Uncaught Error: Class 'Illuminate\Http\Response' not found in /home/.../vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:424 [2020-09-16 12:28:1

我的应用程序后端突然停止工作,在laravel.log中返回500 HTTP错误和此错误:

[2020-09-16 12:28:15] local.ERROR: Uncaught Error: Class 'Illuminate\Http\Response' not found in /home/.../vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:424
[2020-09-16 12:28:19] local.ERROR: Class 'Illuminate\Http\Response' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Illuminate\\Http\\Response' not found at /home/../vendor/laravel/framework/src/Illuminate/Routing/Router.php:751)
Laravel版本是5.8.37

有人知道会出什么问题吗

我试过chmod-R 777 storage/,phpartisan缓存:clear,phpartisan配置:clear和composer dump autoload,都不起作用

提前谢谢你

编辑:删除供应商文件夹并运行下面的命令修复了这个问题,但是我注意到在composer dump autoload期间出现了一些错误

composer install
以下是出现的错误:

Deprecation Notice: Class Twilio\TwiML\Voice\Echo_ located in ./vendor/twilio/sdk/src/Twilio/TwiML/Voice/Echo.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class ConsoleTVs\Support\Traits\StringFUnctions located in ./vendor/consoletvs/support/Traits/StringFunctions.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class App\Http\Controllers\BonusCardController located in ./app/Http/Controllers/Api/V1/BonusCardController.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class App\UserPartner located in ./app/Models/UserPartner.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class App\UserMarathon located in ./app/Models/UserMarathon.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

谢谢大家!

您的
供应商
文件夹似乎有问题,因此请删除旧的
供应商
文件夹

运行这个命令
composer安装
然后
composer转储自动加载


这里
composer install
将安装项目的所有依赖项
composer dump autoload
将加载处理这些依赖项所需的所有文件

能否显示一段代码正是导致此错误的原因?问题是我没有更改控制器中的任何内容,错误日志显示问题在/vendor/中,而不是在我的控制器中。你知道发生了什么吗?你能不能运行composer dump autoload,或者这可能是旧的error@MuhammadTariq他们说他们已经运行了,您可以删除供应商文件夹并运行
composer安装
。可能会成功。
composer安装
将转储自动加载。非常感谢您的解决方案!我发布了一些在composer dump autoload期间出现的错误,你知道我能做些什么来解决这些问题吗?