Update User class.

Added the needed fields and removed unused fields.
This commit is contained in:
2023-06-15 17:43:59 +03:00
parent 61a374dfc7
commit ea363b956e
2 changed files with 4 additions and 26 deletions
+2 -22
View File
@@ -19,27 +19,7 @@ class User extends Authenticatable
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
'matrix_username',
'phone',
];
}