Skip to content

Commit

Permalink
replace $dates property in models by $casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Abedullah22 authored and saeed-corals committed Jul 17, 2024
1 parent e2ea380 commit 99ed7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Corals/core/User/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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 = [])
Expand Down

0 comments on commit 99ed7f6

Please sign in to comment.