$this->resource->id, 'title' => $this->resource->title, 'slug' => $this->resource->slug, 'description' => $this->resource->description, 'actualPrice' => $this->resource->actualPrice, 'listPrice' => $this->resource->listPrice, 'category' => [ 'name' => $this->resource->category->name, 'slug' => $this->resource->category->slug, ], 'productImages' => array_map(function (ProductImageDTO $productImage) { return Storage::disk('public')->url($productImage->path); }, $this->resource->productImages), 'updatedAt' => $this->resource->updatedAt, 'isFavorite' => $this->resource->isFavorite, ]; } }