Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Resources/Admin/TimelineEventBlockResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class TimelineEventBlockResource extends JsonResource { public function toArray($request) { // return parent::toArray($request); // dd($this->id); return [ 'id' => $this->id, 'event_name' => $this->event_name, 'event_description' => $this->event_description, 'position_x' => (float)$this->position_x, 'size' => (float)$this->size, 'event_type' => $this->event_type->event_type, 'timeline_character' => $this->timeline_character->character_name, 'outline' => $this->outline->outline_name ?? null, 'created_at' => (new \Carbon\Carbon($this->created_at))->format('F d, Y'), 'updated_at' => (new \Carbon\Carbon($this->updated_at))->format('F d, Y'), 'color_id' => $this->event_type->color->id, 'color' => $this->event_type->color->color, 'color_code' => $this->event_type->color->color_code, 'foreground_color' => $this->event_type->color->foreground_color, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка