File manager - Edit - /var/www/html/spdc/api/app/Http/Resources/DepartmentResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class DepartmentResource 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, 'name' => $this->name, 'acronym' => $this->acronym, 'scale_type' => $this->scale_type, 'warning_scale_type' => $this->warning_scale_type, 'enable' => $this->enable, 'scales' => ScaleResource::collection($this->whenLoaded('scales')), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings