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 b0a1e98 commit 4a35677Copy full SHA for 4a35677
src/Email.php
@@ -463,10 +463,9 @@ public function send()
463
*/
464
public function retry()
465
{
466
- $retry = new static;
+ $retry = $this->replicate();
467
468
- $retry->fill(array_merge(
469
- $this->toArray(),
+ $retry->fill(
470
[
471
'id' => null,
472
'attempts' => 0,
@@ -476,7 +475,7 @@ public function retry()
476
475
'sent_at' => null,
477
'delivered_at' => null,
478
]
479
- ));
+ );
480
481
$retry->save();
482
}
0 commit comments