Skip to content

Commit

Permalink
Mailables that defined a delay property will honor it. (#20717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipalaus authored and taylorotwell committed Aug 24, 2017
1 parent 3594d9c commit e6da9a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ public function send(MailerContract $mailer)
*/
public function queue(Queue $queue)
{
if (property_exists($this, 'delay')) {
return $this->later($this->delay, $queue);
}

$connection = property_exists($this, 'connection') ? $this->connection : null;

$queueName = property_exists($this, 'queue') ? $this->queue : null;
Expand Down

0 comments on commit e6da9a9

Please sign in to comment.