<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class locationsResource extends JsonResource
{

    public function toArray(Request $request): array
    {
        return [
            "id"=>$this->id,
            "code"=>$this->code,
            "location_name" => $this->location_name,
            "parent"=>$this->parent,
            "picture"=>$this->picture,
            "description"=>$this->description,
            "parent_info"=>$this->parent_info,
        ];
    }
}
