Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tetranyble's avatar

How does the queue system works?

My boss blamed me for writing bad code that doesn't work in live test environment but works on windows development machine.

After passing through so emotional blackmail I discovered that the Laravel queue picks up null Mail configuration but the email configuration is in the .env file. This is so strange.

I have run all possible artisan commands to clear cache but no luck.

However, if I don't send email through queue everything works. i.e send email through controller action in a request.

Laravel schedule system starts off the queue job.

How does the queue system works?

0 likes
7 replies
tetranyble's avatar

@jlrdw I have watched the video. Yet no clue as why it's not running and I have red through the docs.

Does Cpanel has any impact on Laravel queue?

Snapey's avatar

perhaps you could explain this more:

Laravel schedule system starts off the queue job.

Also, how have you determined that the mail config is null?

tetranyble's avatar

@Snapey env() is null while config() is not null which i believe the queue process picks it's config from the environment file through env() which unfortunately returns null.

Please or to participate in this conversation.