File manager - Edit - /var/www/payraty/inventory_main/app/Http/Resources/UserResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class UserResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { return [ 'id' => $this->id, 'name' => $this->name, 'email' => $this->email, 'phone' => $this->phone, 'status' => $this->status, 'own_roles' => RoleResource::collection($this->roles), 'avatar' => $this->avatar, 'avatar_url' => $this->avatar_url, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings