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