File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/FamilyHealthQuestionnaireResource.php
Back
<?php namespace App\Http\Resources; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; class FamilyHealthQuestionnaireResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray($request) { if($this->resource === null){ return []; }; return [ 'id' => $this->id, 'shelter_family_id' => $this->shelter_families_id, 'contact_with_water_or_mud' => $this->contact_with_water_or_mud, 'presence_of_rats' => $this->presence_of_rats, 'trash_on_water' => $this->trash_on_water, 'pests_near_residence' => $this->pests_near_residence, 'residence_situation' => $this->residence_situation, 'description' => $this->description, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings