mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-22 05:44:05 +00:00
- Hidden ID
This commit is contained in:
@@ -13,7 +13,9 @@ class ContractObligation extends Model
|
||||
|
||||
protected $appends = [
|
||||
'hash_id',
|
||||
'contract_hash_id',
|
||||
'contract_hash_id',
|
||||
'user_hash_id',
|
||||
'contract_entity_hash_id',
|
||||
'contract_list',
|
||||
'contract_obligation_dependency_list',
|
||||
'depend_contract_obligation_dependency_list',
|
||||
@@ -22,7 +24,7 @@ class ContractObligation extends Model
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'in_time_contract_obligation_template',
|
||||
'id','user_id','contract_entity_id','contract_id','in_time_contract_obligation_template',
|
||||
];
|
||||
|
||||
public function contract()
|
||||
@@ -59,6 +61,16 @@ class ContractObligation extends Model
|
||||
{
|
||||
return Hasher::encode('contracts', $this->contract_id);
|
||||
}
|
||||
|
||||
public function getContractEntityHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('contract_entities', $this->contract_entity_id);
|
||||
}
|
||||
|
||||
public function getUserHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('user', $this->user_id);
|
||||
}
|
||||
|
||||
public function getContractListAttribute()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user