File manager - Edit - /var/www/html/ciosp/api/app/Http/Resources/NotificationAutoResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class NotificationAutoResource 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, "vehicle_plate" => $this->vehicle_plate, "renavam" => $this->renavam, "vehicle_brand" => new VehicleBrandResource($this->vehicleBrand), "vehicle_model_id" => new VehicleModelResource($this->vehicleModel), "offender" => $this->offender, "driver_license" => $this->driver_license, "driver_license_validity" => $this->driver_license_validity, "driver_license_state" => $this->driver_license_state, "offender_document" => $this->offender_document, "offender_birthday" => $this->offender_birthday, "infraction_date" => $this->infraction_date, "infraction_hour" => $this->infraction_hour, "department_id" => $this->department_id, "modality" => new ModalityResource($this->modality), "article" => new ArticleResource($this->article), "description" => $this->description, "picture1" => $this->picture1, "picture2" => $this->picture2, "signature" => $this->signature ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings