HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/cafe-de-bout.komma.pro/app/Users/Resources/KmsUserResource.php
<?php


namespace App\Users\Resources;

use Illuminate\Http\Resources\Json\Resource;

class KmsUserResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'role' => $this->whenLoaded('role', new RoleResource($this->role)),
            'first_name' => $this->first_name,
            'last_name' => $this->last_name,
            'phone' => $this->phone,
            'street' => $this->street,
            'house_number' => $this->house_number,
            'postal_code' => $this->postal_code,
            'city' => $this->city,
            'gender' => $this->gender,
            'country' => $this->country,
            'language' => $this->language,
            'email' => $this->email,
        ];
    }
}