Laravel Mail :: queue error: Closing serialization failed, even with most basic use

I have problems with Mail::queue() and I donโ€™t know what can be done to solve this problem outside of writing my own Job to process the queue. As you can see in the screenshot below, I have a very minimal example that I am trying to run in artisan tinker . Has anyone solved this problem?

This works fine if I use Mail::send() instead;

error screenshot

+6
source share
1 answer

Closures are not serializable. You cannot push them into the queue.

 Psy Shell v0.8.3 (PHP 7.1.0 โ€” cli) by Justin Hileman >>> serialize(function(){}); Exception with message 'Serialization of 'Closure' is not allowed' 
0
source

All Articles