File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/OccurrencyScriptureInterdictionResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class OccurrencyScriptureInterdictionResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray($request = null) { return [ 'id' => $this->id, 'scripture_id' => $this->scripture_id, 'code' => $this->scripture?->code, 'file' => $this->scripture?->file, 'note' => $this->scripture?->note, 'occurrency' => [ 'code' => $this->scripture?->occurrency?->code, 'address' => new AddressResource($this->scripture?->occurrency?->address) ], 'place_type' => $this->scripture?->placeType->name, 'responsable' => $this->scripture?->responsable, 'publication' => $this->scripture?->publication, 'page' => $this->scripture?->page, 'year' => $this->scripture?->year, 'ban_type' => $this->ban_type, 'area' => $this->area, 'implementation_type' => $this->implementation_type, 'family_composition' => $this->family_composition, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings