<?php

namespace App\Http\Resources;


use Illuminate\Http\Resources\Json\JsonResource;

class OrderAddressResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            "id"           => $this->id,
            "order_id"     => $this->order_id,
            "user_id"      => $this->user_id,
            "name"         => $this->name,
            "phone"        => $this->phone,
            "country_code" => $this->country_code,
            "area"         => $this->area,
            "address"      => $this->address,
        ];
    }
}
