From a2e422242730ba8089ef4c5b454970f631e5d023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Oliveira?= Date: Wed, 27 Nov 2024 19:13:13 -0300 Subject: [PATCH] fix: substitui 'dates' depreciado por 'casts' --- src/Subscription.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Subscription.php b/src/Subscription.php index 8d2dacb..96c21a2 100644 --- a/src/Subscription.php +++ b/src/Subscription.php @@ -15,13 +15,10 @@ class Subscription extends Model */ protected $guarded = []; - /** - * The attributes that should be mutated to dates. - * - * @var array - */ - protected $dates = [ - 'trial_ends_at', 'ends_at', - 'created_at', 'updated_at', + protected $casts = [ + 'trial_ends_at' => 'datetime', + 'ends_at' => 'datetime', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', ]; }