File manager - Edit - /var/www/html/pcadigital/api/app/Http/Resources/OccurrenceViewResource.php
Back
<?php namespace App\Http\Resources; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; class OccurrenceViewResource 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 [ 'organ_name' => $this->organ_name, 'name' => $this->name, 'created_at' => Carbon::parse($this->created_at)->format('Y-m-d H:i:s'), 'status' => $this->status, 'occurrence_id' => $this->occurrence_id, 'description' => $this->description, 'code' => $this->code, 'category_name' => $this->category_name, 'phone' => $this->phone, 'historic_id' => $this->historic_id, 'organ_id' => $this->organ_id, 'images_url' => $this->images_url, 'final_comment' => $this->final_comment ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings