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