Did u restarted the workers? Take a look at this part of the documentation: https://laravel.com/docs/7.x/queues#queue-workers-and-deployment
Laravel, Queue & Logging
Hello, I've been assigned to fix a project built by other people who have since left the project. I don't know much about Laravel and its documentation is.... lacking.
We have a Lavavel sync queue, which processes emails. Today I have attempted to feed it with another variable, and then log that variable. When attempting this I receive this error:
Symfony\Component\Debug\Exception\FatalThrowableError: Class 'log' not found in /usr/local/lib/project/app/Jobs/SendGenericEmailJob.php
We are using Laravel's default logger. I have seen others online be able to use the log class from within a queue script no problem?
I have indeed included: "use Log;" up top.
Any discussion on why this is happening & how to fix it would be greatly appreciated. Thanks
Please or to participate in this conversation.