invoker-community
invoker-community copied to clipboard
Mail preview error
OS: darwin Invoker Version: 2.11.0 Laravel Version: 9.51.0 Local project: true PHP Binary: /Applications/MAMP/bin/php/php8.1.13/bin/php Route: /mails/details?class=App%5CMail%5CWeb%5CDeposit%5CCreated&project=local-jPmHewZ72GKMNraSdDLsb4
Error:
TypeError
Illuminate\Mail\Mailable::queue(): Argument #1 ($queue) must be of type Illuminate\Contracts\Queue\Factory, null given, called in /Users/denny/Dropbox/00-ComHere/deposit.comhere.com/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php on line 306
at /Users/denny/Dropbox/00-ComHere/deposit.comhere.com/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:222
218▕ *
219▕ * @param \Illuminate\Contracts\Queue\Factory $queue
220▕ * @return mixed
221▕ */
➜ 222▕ public function queue(Queue $queue)
223▕ {
224▕ if (isset($this->delay)) {
225▕ return $this->later($this->delay, $queue);
226▕ }
[2m+2 vendor frames [22m
3 phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/Actions/GetMailPreviewAction.php:34
Illuminate\Mail\Mailer::send(Object(App\Mail\Web\Deposit\Created))
4 phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/ActionInvoker.php:33
_HumbugBox8e7f5be646a5\Invoker\Actions\GetMailPreviewAction::execute()
I'm also getting this in every project
OS: darwin Invoker Version: 2.12.0 Laravel Version: 9.45.1 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /mails/details?class=App%5CMail%5CBuildingAssessmentDeadlineSetMail&project=local-2wM4ByzjPqPw47wXATNyrG
I am having the same when the mailable is queued and not sent synchronously. Is there any solution?
Anyone able to resolve this?