fix code resources
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Linksehat\Transformers\Hospitals;
|
||||
namespace Modules\Linksehat\Transformers\Hospital;
|
||||
|
||||
use App\Models\PractitionerRole;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
@@ -30,12 +30,6 @@ class HospitalResourceDetail extends JsonResource
|
||||
$specialitys[$indexSpeciality]['avatar'] = asset('images/default-specialisasi-image.png');
|
||||
}
|
||||
|
||||
if (empty($this->distance)) {
|
||||
$address = $this->currentAddress->text;
|
||||
} else {
|
||||
$address = $this->currentAddress;
|
||||
}
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
|
||||
Reference in New Issue
Block a user