Same in BroadcastNotification

This commit is contained in:
Andres Silva
2024-03-18 12:09:20 -05:00
committed by GitHub
parent aae7ea9e8b
commit 445a80e065
@@ -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;
}
}