'Menunggu Konfirmasi', // 1 => 'Diterima', // 2 => 'Ditolak', // 3 => 'Selesai', // 4 => 'Expired', // ]; const CREATED_AT = 'dCreateOn'; const UPDATED_AT = 'dUpdateOn'; const DELETED_AT = 'dDeleteOn'; protected $connection = 'oldlms'; protected $table = 'tx_prescription_orders'; // protected $appends = [ // 'status_name', // ]; protected $casts = [ 'dTanggalResep' => 'datetime', ]; protected $primaryKey = 'nID'; public function order() { return $this->belongsTo(Prescription::class, 'nIDPrescription', 'nIDPrescription'); } }