Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/app/Http/Resources/OpportunityResource.php
Назад
<?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class OpportunityResource extends JsonResource { /** * Transform the resource into an array. * * @return array<string, mixed> */ public function toArray(Request $request): array { $techStack = []; foreach ($this->techStacks as $stack) { $techStack[] = [ 'id' => $stack->id, 'skills' => $stack->Skills, 'technologies' => $stack->technologies, ]; } return [ 'id'=>$this->id ?? null, 'title' => $this->title ?? null, 'company_name'=>$this->company_name ?? null, 'email'=>$this->email ?? null, 'phone_number'=>$this->phone_number ?? null, 'description' => $this->description ?? null, 'years_of_experience' => $this->years_of_experience ?? null, 'opportunity_type' => $this->opportunity_type ?? null, 'status' => $this->status ?? null, 'pay_scale' => $this->pay_scale ?? null, 'application_deadline' => $this->application_deadline ?? null, 'addition_notes' => $this->addition_notes ?? null, 'tech-stacks'=>$techStack ?? null, 'city_id' => $this->city->city_name ?? null, 'location'=>$this->location ?? null, 'user_id' => $this->user_id ?? null, 'user' => $this->user ?? null, 'created_at' => $this->created_at ?? null, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка