<?php

namespace Modules\Store\Models\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Modules\Category\Models\Resources\CategoryResource;

class StoreResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'email'=> $this->email,
            'phone'=> $this->phone,
            'title'=>$this->currentDescription->title,
        ];
    }
}
