This commit is contained in:
glovetleong
2021-08-05 14:01:33 +08:00
parent 9f5224bc73
commit e3b6c69718
17 changed files with 215 additions and 26 deletions
+8 -3
View File
@@ -24,11 +24,16 @@ class User extends Authenticatable
'name', 'email', 'password',
];
protected $hidden = [
'password',
protected $appends = [
'hash_id',
'role_list',
'permission_list'
];
protected $appends = ['hash_id', 'role_list', 'permission_list'];
protected $hidden = [
'id',
'password'
];
public function getHashIdAttribute()
{