Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/app/Http/Resources/CompanyResource.php
Назад
<?php namespace App\Http\Resources; use App\Models\CompanyIndustry; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class CompanyResource extends JsonResource { /** * Transform the resource into an array. * * @return array<string=>$this-> mixed> */ public function toArray(Request $request): array { return [ 'id' => $this->id, 'company_name' => $this->company_name, 'contact_person_name' => $this->contact_person_name, 'phone_number' => $this->phone_number, 'location' => $this->location, 'description' => $this->description, 'year_established' => $this->year_established, 'website_url' => $this->website_url, 'company_size' => $this->company_size, 'linkedin_profile_url' => $this->linkedin_profile_url, 'facebook_profile_url' => $this->facebook_profile_url, 'instagram_profile_url' => $this->instagram_profile_url, 'operating_hours' => $this->operating_hours, 'logo' => $this->logo, 'is_pseb' => $this->is_pseb, 'is_pasha' => $this->is_pasha, 'industries' => CompanyIndustryResource::collection($this->companyIndustries) ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка