File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/AddressResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class AddressResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray($request) { return [ 'id' => $this->id, 'postal_code' => $this->postal_code, 'street' => $this->street, 'number' => $this->number, 'neighborhood' => $this->neighborhood, 'city' => $this->city, 'state' => $this->state, 'complement' => $this->complement, 'reference_point' => $this->reference_point, 'latitude' => $this->latitude, 'longitude' => $this->longitude, 'occurrencies' => OccurrencyResource::collection($this->whenLoaded('occurrencies')) ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings