fixing add prescription
This commit is contained in:
@@ -70,4 +70,8 @@ class Livechat extends Model
|
||||
{
|
||||
return $this->belongsTo(Healthcare::class, 'nIDHealthCare', 'nID');
|
||||
}
|
||||
|
||||
public function summary(){
|
||||
return $this->belongsTo(LivechatSummary::class, 'nID', 'nIDLivechat');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ class Prescription extends Model
|
||||
|
||||
protected $table = 'tx_prescriptions';
|
||||
|
||||
protected $primaryKey = 'nID';
|
||||
|
||||
// protected $appends = [
|
||||
// 'status_name',
|
||||
// ];
|
||||
|
||||
@@ -48,4 +48,5 @@ class PrescriptionItem extends Model
|
||||
'dTanggalResep' => 'datetime',
|
||||
];
|
||||
|
||||
protected $primaryKey = 'nID';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user