File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/ShelterVoluntaryRerource.php
Back
<?php namespace App\Http\Resources; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; class ShelterVoluntaryRerource 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 [ 'name' => $this->name, 'cpf' => $this->cpf, 'city' => $this->city, 'state' => $this->state, 'number' => $this->number, 'zip_code' => $this->zipCode, 'neighborhood' => $this->neighborhood, 'street' => $this->street, 'specialties' => $this->specialties, 'observation' => $this->observation, 'is_active' => $this->is_active, 'created_by' => $this->created_by, 'created_at' => Carbon::parse($this->created_at)->format('d-m-Y H:i:s'), 'shelter_id' => $this->shelter->id, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings