File manager - Edit - /var/www/html/homologBancodetalentos/app/Http/Resources/TalentBank/JobResource.php
Back
<?php namespace App\Http\Resources\TalentBank; use Illuminate\Http\Resources\Json\JsonResource; class JobResource extends JsonResource { public function toArray($request): array { return [ 'id' => $this->id, 'descripton' => $this->description, 'spots_total' => $this->spots_total, 'spots_filled' => $this->spots_filled, 'requirements_mandatory' => $this->requirements_mandatory, 'requirements_optional' => $this->requirements_optional, 'benefits' => $this->benefits, 'misc_info' => $this->misc_info, 'is_hiring' => $this->is_hiring, 'hide_company' => $this->hide_company, 'company' => $this->hide_company ? __('crud.message.classified') : $this->company->trading_name, 'company_id' => $this->company->id, 'occupation' => $this->occupation()->get(['id', 'name'])->first(), 'salary_range' => $this->salaryRange()->get(['id', 'name'])->first(), 'contract_type' => $this->contractType()->get(['id', 'name'])->first(), 'neighbourhood' => $this->neighbourhood()->get(['id', 'name'])->first(), 'expertise_level' => $this->expertiseLevel()->get(['id', 'name'])->first(), 'modality' => $this->modality()->get(['id', 'name'])->first(), 'workload' => $this->workload()->get(['id', 'name'])->first(), 'candidates' => $this->whenLoaded('candidates', function () { return CandidateResource::collection($this->candidates); }), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings