Add Additional Information

This commit is contained in:
R
2023-02-15 09:57:00 +07:00
parent 7f77deb09e
commit d8f493103c
6 changed files with 65 additions and 16 deletions

View File

@@ -50,15 +50,13 @@ class Appointment extends Model
'dUpdateOn',
'dDeleteOn',
];
protected $appends = [
'status_name',
'payment_method'
];
protected function StatusName(): Attribute
protected function statusName(): Attribute
{
return Attribute::make(
get: function ($value) {
@@ -67,7 +65,7 @@ class Appointment extends Model
);
}
protected function PaymentMethod(): Attribute
protected function paymentMethod(): Attribute
{
return Attribute::make(
get: function ($value) {