From 445a80e0650c7c0c48fa9d489eb124d8b7853b0e Mon Sep 17 00:00:00 2001 From: Andres Silva Date: Mon, 18 Mar 2024 12:09:20 -0500 Subject: [PATCH] Same in BroadcastNotification --- packages/notifications/src/BroadcastNotification.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/notifications/src/BroadcastNotification.php b/packages/notifications/src/BroadcastNotification.php index 42800b5a7f..fb762e202a 100644 --- a/packages/notifications/src/BroadcastNotification.php +++ b/packages/notifications/src/BroadcastNotification.php @@ -4,11 +4,12 @@ namespace Filament\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Messages\BroadcastMessage; use Illuminate\Notifications\Notification as BaseNotification; -class BroadcastNotification extends BaseNotification implements ShouldQueue +class BroadcastNotification extends BaseNotification implements ShouldQueue, Arrayable { use Queueable; @@ -36,4 +37,12 @@ class BroadcastNotification extends BaseNotification implements ShouldQueue { return new BroadcastMessage($this->data); } + + /** + * Array representation of this notification. + */ + public function toArray(): array + { + return $this->data; + } }