Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Resources/Admin/GroupResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class GroupResource extends JsonResource { public function toArray($request) { $members = []; foreach ($this->members as $member) { $members[] = [ "id" => $member->id, "name" => $member->name, "email" => $member->email, "profile_image" => getProfileImage($member), ]; } return [ 'id' => $this->id, 'group_name' => $this->group_name, 'group_icon' => getGroupIcon($this), 'members' => $members, 'is_admin' => $this->user_id == auth()->id(), 'created_at' => (new \Carbon\Carbon($this->created_at))->format('F d, Y'), 'updated_at' => (new \Carbon\Carbon($this->updated_at))->format('F d, Y'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка