Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
tbfguestbe.tbf.ro
/
app
/
Http
/
Resources
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
InstanceEditResource.php
| Size :
2.15
KB
Copy
<?php namespace App\Http\Resources; use App\Models\Option; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class InstanceEditResource extends JsonResource { /** * Transform the resource into an array. * * @return array<string, mixed> */ public function toArray(Request $request): array { return [ 'id' => $this->id, 'name' => $this->name, 'options' => OptionResource::collection($this->options()->wherePivot('type', Option::COMPANY)->get()), 'website' => $this->website, 'logo' => $this->logo, 'color' => $this->color, 'phone' => $this->phone, 'email' => $this->email, 'description' => $this->description, 'experience' => $this->experience, 'employee_number' => $this->employee_number, 'director_number' => $this->director_number, 'turnover' => $this->turnover, 'important_partners' => $this->important_partners, 'important_collaborators' => $this->important_collaborators, 'mission' => $this->mission, 'vision' => $this->vision, 'values' => $this->values, 'total_customers' => $this->total_customers, 'products_and_services' => $this->products_and_services, 'customer_feedback' => $this->customer_feedback, 'industry_innovations' => $this->industry_innovations, 'certifications' => $this->certifications, 'awards' => $this->awards, 'knowhow' => $this->knowhow, 'customer_feedback_positive' => $this->customer_feedback_positive, 'customer_feedback_negative' => $this->customer_feedback_negative, 'customer_feedback_mixt' => $this->customer_feedback_mixt, ]; } }
Back