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