Файловый менеджер - Редактировать - /home/clickysoft/public_html/app/Http/Resources/Admin/SupplierResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class SupplierResource extends JsonResource { public function toArray($request) { return [ 'id' => $this->id, 'name' => $this->contact_name, 'contact_email' => $this->contact_email, 'contact_number' => $this->contact_number, 'address_line_1' => $this->address_line_1, 'address_line_2' => $this->address_line_2, 'country' => [ "id" => $this->country->id, "name" => $this->country->name, ], "city" => $this->city, "state" => $this->state, "zip_code" => $this->zip_code, "url" => $this->url, "status" => $this->status, "logo" => [ "thumbnail" => $this->logo?->thumbnail ?? "https://placehold.co/100x100/EEE/31343C?font-Lato&text=" . strtoupper(substr($this->contact_name, 0, 2)), "url" => $this->logo?->url ?? "https://placehold.co/200x200/EEE/31343C?font-Lato&text=" . strtoupper(substr($this->contact_name, 0, 2)), ], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка