fixing add prescription

This commit is contained in:
2024-04-30 17:03:44 +07:00
parent f3064d306c
commit 9168af67b6
15 changed files with 294 additions and 62 deletions

View File

@@ -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');
}
}

View File

@@ -41,6 +41,8 @@ class Prescription extends Model
protected $table = 'tx_prescriptions';
protected $primaryKey = 'nID';
// protected $appends = [
// 'status_name',
// ];

View File

@@ -48,4 +48,5 @@ class PrescriptionItem extends Model
'dTanggalResep' => 'datetime',
];
protected $primaryKey = 'nID';
}