Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Resources/Admin/BrainstormDetailResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; use App\Http\Resources\Admin\BrainstormRoundDetailResource; class BrainstormDetailResource extends JsonResource { public function toArray($request) { // return parent::toArray($request); $descriptionsLines = explode("\n", $this->description); return [ 'id' => $this->id, 'brainstorm_name' => $this->brainstorm_name, 'description' => $this->description, 'lines' => count($descriptionsLines), 'audio_file_name' => $this->audio_file, 'image_id' => $this->image_id, 'image_url' => $this->image ? $this->image->image_url : null, 'book' => $this->book ? [ "book_id" => $this->book->id, "book_name" => $this->book->book_name, ] : [], '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->color->id, 'color' => $this->color->color, 'color_code' => $this->color->color_code, 'foreground_color' => $this->color->foreground_color, 'rounds' => BrainstormRoundDetailResource::collection($this->rounds), 'comments' => $this->comments ?? [], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка