Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Resources/Admin/CollaboratorResource.php
Назад
<?php namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class CollaboratorResource extends JsonResource { public function toArray($request) { return [ 'id' => $this->id, 'name' => $this->user->name ?? null, 'email' => $this->email, 'role' => $this->role, 'status' => $this->user->status ?? null, 'profile_image' => $this->user->profile_image ?? null, 'collaboratable_id' => $this->collaboratable_id, 'collaboratable_type' => $this->collaboratable_type, 'allowed' => (auth()->check() && $this->role == 'editor') ? true : false, 'created_at' => (new \Carbon\Carbon($this->created_at))->format('F d, Y, H:i:s'), 'updated_at' => (new \Carbon\Carbon($this->updated_at))->format('F d, Y, H:i:s'), 'user' => $this->user, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка