mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-21 21:34:07 +00:00
- Hidden ID
This commit is contained in:
@@ -11,10 +11,10 @@ class Contract extends Model
|
||||
{
|
||||
protected $table = 'contracts';
|
||||
|
||||
protected $appends = ['hash_id', 'contract_obligation_list', 'contract_entity_list'];
|
||||
protected $appends = ['hash_id','user_hash_id', 'contract_obligation_list', 'contract_entity_list'];
|
||||
|
||||
protected $hidden = [
|
||||
'id', 'in_time_contract_template',
|
||||
'id','user_id', 'in_time_contract_template'
|
||||
];
|
||||
|
||||
public function contract_obligation()
|
||||
@@ -31,6 +31,11 @@ class Contract extends Model
|
||||
{
|
||||
return Hasher::encode('contracts', $this->id);
|
||||
}
|
||||
|
||||
public function getUserHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('user', $this->user_id);
|
||||
}
|
||||
|
||||
public function getContractObligationListAttribute()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user