Skip to content

Commit

Permalink
fixed date casts
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 26, 2023
1 parent bc5a250 commit ed444a6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions app/Models/Auth/User.php
Expand Up @@ -37,8 +37,11 @@ class User extends Authenticatable implements HasLocalePreference
* @var array
*/
protected $casts = [
'enabled' => 'boolean',
'deleted_at' => 'datetime',
'enabled' => 'boolean',
'last_logged_in_at' => 'datetime',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
];

/**
Expand All @@ -48,13 +51,6 @@ class User extends Authenticatable implements HasLocalePreference
*/
protected $hidden = ['password', 'remember_token'];

/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['last_logged_in_at', 'created_at', 'updated_at', 'deleted_at'];

/**
* Sortable columns.
*
Expand Down

0 comments on commit ed444a6

Please sign in to comment.