Skip to content

Commit bec5bb5

Browse files
committed
fix conflicts
2 parents 2683452 + 7cb184f commit bec5bb5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Illuminate/Mail/Mailable.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function queue(Queue $queue)
188188
$queueName = property_exists($this, 'queue') ? $this->queue : null;
189189

190190
return $queue->connection($connection)->pushOn(
191-
$queueName ?: null, new SendQueuedMailable($this)
191+
$queueName ?: null, $this->newQueuedJob()
192192
);
193193
}
194194

@@ -206,10 +206,20 @@ public function later($delay, Queue $queue)
206206
$queueName = property_exists($this, 'queue') ? $this->queue : null;
207207

208208
return $queue->connection($connection)->laterOn(
209-
$queueName ?: null, $delay, new SendQueuedMailable($this)
209+
$queueName ?: null, $delay, $this->newQueuedJob()
210210
);
211211
}
212212

213+
/**
214+
* Make the queued mailable job instance.
215+
*
216+
* @return mixed
217+
*/
218+
protected function newQueuedJob()
219+
{
220+
return new SendQueuedMailable($this);
221+
}
222+
213223
/**
214224
* Render the mailable into a view.
215225
*

0 commit comments

Comments
 (0)