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(