From 29ea604784e78d4c85afa70673ebe8502ad4ca11 Mon Sep 17 00:00:00 2001 From: atymic Date: Thu, 21 Mar 2024 09:32:05 +1100 Subject: [PATCH] fix: sent at null on sent event (#127) --- src/Models/ScheduledNotification.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/ScheduledNotification.php b/src/Models/ScheduledNotification.php index 3b5f4c0..36b39e6 100644 --- a/src/Models/ScheduledNotification.php +++ b/src/Models/ScheduledNotification.php @@ -68,10 +68,10 @@ public function send(): void $notifiable->notify($notification); - event(new NotificationSent($this)); - $this->sent_at = Carbon::now(); $this->save(); + + event(new NotificationSent($this)); } /**