fix doctor resource

This commit is contained in:
Muhammad Fajar
2022-11-07 14:42:45 +07:00
parent fe356eb382
commit d8fbd6b396
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class DoctorResource extends JsonResource
return [
'id' => $this->practitioner_id,
'name' => $this->person->name ?? '',
'specialis' => "Spesialis " . $this->speciality->name ?? '',
'specialities' => "Spesialis " . $this->speciality->name ?? '',
'photos' => [
'title' => 'doctors-avatar-' . $this->practitioner_id,
'url' => asset('images/default-doctor-avatar.png')