我正在尝试使用 Laravel 5.6 作业队列来避免我的项目中的电子邮件发送延迟及其无法正常工作。我的日志文件包含以下错误[2020-06-14 12:46:03] local.ERROR: 类不存在 {"exception":"[object] (ReflectionException(code: -1): Class does not exist at /var/www/html/项目/供应商/laravel/framework/src/Illuminate/Container/Container.php:767) [堆栈跟踪]#0 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): 反射类->__construct('')#1 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(646):Illuminate\Container\Container->build(NULL)#2 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve(NULL, 数组)#3 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make(NULL, 数组)#4 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(184):Illuminate\Foundation\Application->make(NULL)#5 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(83): Illuminate\Queue\Jobs\Job->解析(NULL)#6 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(326):Illuminate\Queue\Jobs\Job->fire()#7 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(276): Illuminate\Queue\Worker->process('数据库', 对象(Illuminate\Queue\Jobs \DatabaseJob), 对象(照亮\Queue\WorkerOptions))#8 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\Queue\Worker->runJob(对象(Illuminate\Queue\Jobs\DatabaseJob), '数据库', 对象(Illuminate\Queue\WorkerOptions))#9 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\Queue\Worker->daemon('数据库', '默认', 对象(照亮\队列\WorkerOptions))#10 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(85): Illuminate\Queue\Console\WorkCommand->runWorker('数据库', '默认' )#11 [内部函数]: Illuminate\Queue\Console\WorkCommand->handle()
1 回答
倚天杖
TA贡献1828条经验 获得超3个赞
类不存在 {"exception":"[object] (ReflectionException(code: -1): Class does not exist at vendor/laravel/framework/src/Illuminate/Container/Container.php:767) [stacktrace]
由于 php 和 laravel 的版本冲突发生反射异常,
我已经更改了我的 php 版本并运行 composer update 。现在它正在工作
- 1 回答
- 0 关注
- 134 浏览
添加回答
举报
0/150
提交
取消