<?php

namespace Modules\ServiceHelper\app\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class ImageResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     */
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'api_server_path' => $this->api_server_path,
            'folder' => $this->folder,
            'filename' => $this->filename,
            'alt_filename' => $this->alt_filename,
            'promotion_id' => $this->promotion_id,
            'product_id' => $this->product_id,
            'category_id' => $this->category_id,
            'created_at'=> $this->created_at,
        ];
    }
}
