]> BookStack Code Mirror - bookstack/commitdiff
Queue confirmation emails.
authorDane Everitt <redacted>
Fri, 14 Apr 2017 00:03:03 +0000 (20:03 -0400)
committerGitHub <redacted>
Fri, 14 Apr 2017 00:03:03 +0000 (20:03 -0400)
Implements Laravel's queue abilities into the email notification job. Should not affect existing installations that are not using queues as the environment file defaults to `sync`.

app/Notifications/ConfirmEmail.php

index 64d9bb9acb6494ebf3c0db1b6e884e34b9d86d99..3a49167486a25ec342c0d035ac4ce2f876844a42 100644 (file)
@@ -3,11 +3,14 @@
 namespace BookStack\Notifications;
 
 use Illuminate\Notifications\Notification;
+use Illuminate\Contracts\Queue\ShouldQueue;
 use Illuminate\Notifications\Messages\MailMessage;
 
-class ConfirmEmail extends Notification
+class ConfirmEmail extends Notification implements ShouldQueue
 {
 
+    use Queueable;
+    
     public $token;
 
     /**