Laravel Queue mailable via tinker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|// Create mailable, e.g. MailableTest|
|php artisan make:mail MailableTest --markdown=emails.mailable-test|
|// Run horizon or queue worker|
|// Open tinker|
|$mailable = (new \App\Mail\MailableTest())->onQueue('queue-name');|
May 19, 2022
@carltondickson Thanks, @dilab method works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This does not seem to work. Laravel will send the email synchronously.