diff --git a/src/Subscription.php b/src/Subscription.php index 47e3393..d1207c4 100644 --- a/src/Subscription.php +++ b/src/Subscription.php @@ -25,6 +25,10 @@ class Subscription extends Model 'updated_at', ]; + protected array $casts = [ + 'ends_at' => 'datetime' + ]; + /** * Get the user that owns the subscription. *