File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/OccurrencyFieldResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class OccurrencyFieldResource 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, 'label' => $this->label, 'type' => $this->type, 'title' => $this->title, 'description' => $this->description, 'multiple' => $this->multiple, 'options' => $this->options, 'system_item' => $this->system_item, 'system_item_type' => $this->system_item_type, 'must_be_updated' => $this->must_be_updated, 'forms' => OccurrencyFormResource::collection($this->whenLoaded('forms')), 'validations' => OccurrencyValidationResource::collection($this->whenLoaded('validations')), 'value' => isset($this->answer) ? $this->answer->value : null, 'section' => $this->section, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings