From 7296146aadc24ac826a17817f1590964339697cf Mon Sep 17 00:00:00 2001 From: Daan Geurts Date: Wed, 30 Oct 2019 15:20:10 +0100 Subject: [PATCH] Fix --- src/model/AppleNotification.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/AppleNotification.php b/src/model/AppleNotification.php index f935534..c854758 100644 --- a/src/model/AppleNotification.php +++ b/src/model/AppleNotification.php @@ -8,6 +8,10 @@ class AppleNotification extends Model { public $guarded = []; + protected $casts = [ + 'payload' => 'array', + ]; + public static function storeNotification(string $notificationType, array $notificationPayload) { return self::create(