We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f786fd9 commit 04dddedCopy full SHA for 04ddded
src/Email.php
@@ -349,8 +349,10 @@ public function send()
349
350
$this->markAsSending();
351
352
- Event::dispatch('before.send');
353
-
+ if (app()->runningUnitTests()) {
+ Event::dispatch('before.send');
354
+ }
355
+
356
Mail::send([], [], function ($message) {
357
$message->to($this->getRecipient())
358
->cc($this->hasCc() ? $this->getCc() : [])
@@ -387,4 +389,4 @@ public function retry()
387
389
388
390
$retry->save();
391
}
-}
392
+}
0 commit comments