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