Skip to content

Commit e5a0ee6

Browse files
authored
Update Mailable.php (#45040)
1 parent 7392f1b commit e5a0ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Mail/Mailable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function later($delay, Queue $queue)
258258
*/
259259
protected function newQueuedJob()
260260
{
261-
return (new SendQueuedMailable($this))
261+
return Container::getInstance()->make(SendQueuedMailable::class, ['mailable' => $this])
262262
->through(array_merge(
263263
method_exists($this, 'middleware') ? $this->middleware() : [],
264264
$this->middleware ?? []

0 commit comments

Comments
 (0)