Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Resources/Admin/SearchTimelineResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class SearchTimelineResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray($request) { $desc = explode("\n", $this->description); return [ 'id' => $this->id, 'name' => $this->name, 'description' => $this->description, 'image_url' => $this->image ? $this->image->image_url : "https://via.placeholder.com/50/EEEEEE/000000/?text=TL", // 'color_id' => $this->color->id, // 'color' => $this->color->color, // 'color_code' => $this->color->color_code, // 'foreground_color' => $this->color->foreground_color, 'events' => $this->event_types_count, 'lines' => count($desc), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка