update
This commit is contained in:
@@ -55,6 +55,12 @@ class Livechat extends Model
|
||||
return $this->belongsTo(User::class, 'nIDUser', 'nID');
|
||||
}
|
||||
|
||||
public function userInsurance()
|
||||
{
|
||||
return $this->belongsTo(UserInsurance::class, 'nIDUser', 'nIDUser');
|
||||
}
|
||||
|
||||
|
||||
public function doctor()
|
||||
{
|
||||
return $this->belongsTo(Dokter::class, 'nIDDokter', 'nIDUser');
|
||||
@@ -74,4 +80,12 @@ class Livechat extends Model
|
||||
public function summary(){
|
||||
return $this->belongsTo(LivechatSummary::class, 'nID', 'nIDLivechat');
|
||||
}
|
||||
|
||||
public function prescription(){
|
||||
return $this->belongsTo(Prescription::class, 'nID', 'nIDLivechat');
|
||||
}
|
||||
|
||||
public function rujukan(){
|
||||
return $this->belongsTo(Rujukan::class, 'nID', 'nIDLivechat');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user