make password hidden

This commit is contained in:
Liu 2024-07-04 20:53:06 +08:00 committed by GitHub
parent c1e4275399
commit e18b30e89a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,8 @@ class User extends Model implements AuthenticatableContract
'id', 'username', 'email', 'avatar', 'password', 'remember_token', 'creator_id', 'status', 'department_id', 'login_ip', 'login_at', 'created_at', 'updated_at', 'deleted_at'
];
protected array $defaultHidden = ['password', 'remember_token'];
/**
* @var array|string[]
*/