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