From 3b7a2446bbe6f128fe85286678d086cec173200e Mon Sep 17 00:00:00 2001 From: Adam Campbell Date: Wed, 30 May 2018 08:37:29 -0500 Subject: [PATCH] Add Queueable, SerializesModels to all notification events (#24368) Refs https://github.com/laravel/framework/issues/24350 --- src/Illuminate/Notifications/Events/NotificationFailed.php | 5 +++++ src/Illuminate/Notifications/Events/NotificationSending.php | 5 +++++ src/Illuminate/Notifications/Events/NotificationSent.php | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/Illuminate/Notifications/Events/NotificationFailed.php b/src/Illuminate/Notifications/Events/NotificationFailed.php index 1ddd965395b0..b69e1c5485af 100644 --- a/src/Illuminate/Notifications/Events/NotificationFailed.php +++ b/src/Illuminate/Notifications/Events/NotificationFailed.php @@ -2,8 +2,13 @@ namespace Illuminate\Notifications\Events; +use Illuminate\Bus\Queueable; +use Illuminate\Queue\SerializesModels; + class NotificationFailed { + use Queueable, SerializesModels; + /** * The notifiable entity who received the notification. * diff --git a/src/Illuminate/Notifications/Events/NotificationSending.php b/src/Illuminate/Notifications/Events/NotificationSending.php index 81a218ece563..6efd1d06de93 100644 --- a/src/Illuminate/Notifications/Events/NotificationSending.php +++ b/src/Illuminate/Notifications/Events/NotificationSending.php @@ -2,8 +2,13 @@ namespace Illuminate\Notifications\Events; +use Illuminate\Bus\Queueable; +use Illuminate\Queue\SerializesModels; + class NotificationSending { + use Queueable, SerializesModels; + /** * The notifiable entity who received the notification. * diff --git a/src/Illuminate/Notifications/Events/NotificationSent.php b/src/Illuminate/Notifications/Events/NotificationSent.php index 725d880f51fe..4f09069148eb 100644 --- a/src/Illuminate/Notifications/Events/NotificationSent.php +++ b/src/Illuminate/Notifications/Events/NotificationSent.php @@ -2,8 +2,13 @@ namespace Illuminate\Notifications\Events; +use Illuminate\Bus\Queueable; +use Illuminate\Queue\SerializesModels; + class NotificationSent { + use Queueable, SerializesModels; + /** * The notifiable entity who received the notification. *