29 lines
745 B
PHP
29 lines
745 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Home;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class OtherOutletResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'id' => $this->uuid,
|
|
'server_banner_url' => $this->server_banner_url,
|
|
'name' => $this->name,
|
|
'phone_number' => $this->phone_number,
|
|
'location' => $this->full_address,
|
|
'latitude' => (float) $this->latitude,
|
|
'longitude' => (float) $this->longitude,
|
|
'is_active' => $this->is_active
|
|
];
|
|
}
|
|
}
|