api show hospital

This commit is contained in:
Muhammad Fajar
2022-10-28 09:44:15 +07:00
parent b477040fc1
commit 302cc343fd
4 changed files with 74 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ class HospitalResource extends JsonResource
'distance' => $this->distance ? ($this->distance < 1 ? round($this->distance * 1000, 2) . " m" : round($this->distance, 2) . " km") : null,
'photos' => [
'title' => Str::slug($this->name),
'url' => asset('images/default-doctor-avatar.png')
'url' => asset('images/default-hospital-image.png'),
]
];
}