From aae7ea9e8be3810ee2e738198f4566dfd2b63a47 Mon Sep 17 00:00:00 2001 From: Andres Silva Date: Mon, 18 Mar 2024 12:07:44 -0500 Subject: [PATCH] Using Arrayable interface --- packages/notifications/src/DatabaseNotification.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/notifications/src/DatabaseNotification.php b/packages/notifications/src/DatabaseNotification.php index 2a655a390b..05c3f472f5 100644 --- a/packages/notifications/src/DatabaseNotification.php +++ b/packages/notifications/src/DatabaseNotification.php @@ -4,10 +4,11 @@ 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\Notification as BaseNotification; -class DatabaseNotification extends BaseNotification implements ShouldQueue +class DatabaseNotification extends BaseNotification implements ShouldQueue, Arrayable { use Queueable; @@ -42,6 +43,6 @@ class DatabaseNotification extends BaseNotification implements ShouldQueue */ public function toArray(): array { - return []; + return $this->data; } }