mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
hide id
This commit is contained in:
+8
-3
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user