File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/MemberHealthQuestionnaireResource.php
Back
<?php namespace App\Http\Resources; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; class MemberHealthQuestionnaireResource 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_member_family_id' => $this->shelter_member_family_id, 'blood_type' => $this->blood_type, 'antigen' => $this->antigen, 'hypertension' => $this->hypertension, 'diabetes' => $this->diabetes, 'another_cronic_disease' => $this->another_cronic_disease, 'another_cronic_disease_description' => $this->another_cronic_disease_description, 'regular_use_of_medicine' => $this->regular_use_of_medicine, 'regular_use_of_medicine_description' => $this->regular_use_of_medicine_description, 'is_medicine_on_shelter' => $this->is_medicine_on_shelter, 'health_problems_currently' => $this->health_problems_currently, 'health_problems_currently_description' => $this->health_problems_currently_description, 'recent_surgery' => $this->recent_surgery, 'recent_surgery_description' => $this->recent_surgery_description, 'pregnant' => $this->pregnant, 'pregnant_description' => $this->pregnant_description, 'wounded_in_contact_with_water' => $this->wounded_in_contact_with_water, 'wounded_in_contact_with_water_description' => $this->wounded_in_contact_with_water_description, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings