mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-20 12:54:07 +00:00
- Hidden ID
This commit is contained in:
+10
-1
@@ -11,7 +11,11 @@ class Entity extends Model
|
||||
{
|
||||
protected $table = 'entities';
|
||||
|
||||
protected $appends = ['hash_id', 'entity_signature_list'];
|
||||
protected $appends = ['hash_id','user_hash_id', 'entity_signature_list'];
|
||||
|
||||
protected $hidden = [
|
||||
'id','user_id',
|
||||
];
|
||||
|
||||
public function entity_signature()
|
||||
{
|
||||
@@ -22,6 +26,11 @@ class Entity extends Model
|
||||
{
|
||||
return Hasher::encode('entities', $this->id);
|
||||
}
|
||||
|
||||
public function getUserHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('user', $this->user_id);
|
||||
}
|
||||
|
||||
public function getEntitySignatureListAttribute()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user