File manager - Edit - /var/www/html/homologBancodetalentos/app/Http/Resources/TalentBank/CompanyResource.php
Back
<?php namespace App\Http\Resources\TalentBank; use App\Http\Services\TalentBank\CompanyService; use Illuminate\Http\Resources\Json\JsonResource; class CompanyResource extends JsonResource { public function toArray($request): array { $logo = CompanyService::logoPublicUrl($this->logo); return [ 'id' => $this->id, 'cnpj' => $this->cnpj, 'corporate_name' => $this->corporate_name, 'trading_name' => $this->trading_name, 'logo' => $logo, 'description' => $this->description, 'address' => $this->address, 'zip_code' => $this->zip_code, 'neighbourhood' => $this->neighbourhood()->get(['id', 'name'])->first(), 'telephone' => $this->telephone, 'cellphone' => $this->cellphone, 'contact_name' => $this->contact_name, 'email' => $this->email, 'active' => $this->active, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings