Skip to content

Commit

Permalink
- Added extra casts to user model
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed May 5, 2024
1 parent ca4a108 commit 529c3b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ abstract class User extends Authenticatable implements AdminModel, HasMedia, Mus
* @var array
*/
protected $casts = [
'name' => 'string',
'email' => 'string',
'email_verified_at' => 'datetime',
'last_login_at' => 'datetime',
'login_attempts' => 'integer',
'require_password_update' => 'boolean',
'status' => UserStatuses::class,
'new_email' => 'string',
];

/**
Expand Down

0 comments on commit 529c3b6

Please sign in to comment.