From 99ed7f6992cc81e75f5c2014329db6e4d249ec2a Mon Sep 17 00:00:00 2001 From: Abedullah Abugozah Date: Tue, 16 Jul 2024 10:51:07 +0300 Subject: [PATCH] replace $dates property in models by $casts --- Corals/core/User/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Corals/core/User/Models/User.php b/Corals/core/User/Models/User.php index 9f4eecdc..6d7db1af 100644 --- a/Corals/core/User/Models/User.php +++ b/Corals/core/User/Models/User.php @@ -52,7 +52,6 @@ class User extends Authenticatable implements TwoFactorAuthenticatableContract, protected $appends = ['picture', 'picture_thumb']; - protected $dates = ['trial_ends_at']; /** * The attributes that are mass assignable. * @@ -76,7 +75,8 @@ class User extends Authenticatable implements TwoFactorAuthenticatableContract, protected $casts = [ 'address' => 'json', 'notification_preferences' => 'array', - 'properties' => 'json' + 'properties' => 'json', + 'trial_ends_at' => 'datetime', ]; public function __construct(array $attributes = [])