Committed by
GitHub
Queue confirmation emails.
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`.
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -3,11 +3,14 @@ | ... | @@ -3,11 +3,14 @@ |
| 3 | namespace BookStack\Notifications; | 3 | namespace BookStack\Notifications; |
| 4 | 4 | ||
| 5 | use Illuminate\Notifications\Notification; | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Illuminate\Contracts\Queue\ShouldQueue; | ||
| 6 | use Illuminate\Notifications\Messages\MailMessage; | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 7 | 8 | ||
| 8 | -class ConfirmEmail extends Notification | 9 | +class ConfirmEmail extends Notification implements ShouldQueue |
| 9 | { | 10 | { |
| 10 | 11 | ||
| 12 | + use Queueable; | ||
| 13 | + | ||
| 11 | public $token; | 14 | public $token; |
| 12 | 15 | ||
| 13 | /** | 16 | /** | ... | ... |
-
Please register or sign in to post a comment