feat(products): expose thumbnail URL
This commit is contained in:
parent
7d96e8f0f9
commit
97d5614397
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ class ProductResource extends JsonResource
|
||||||
'sku' => $this->resource->sku,
|
'sku' => $this->resource->sku,
|
||||||
'short_description' => $this->resource->short_description,
|
'short_description' => $this->resource->short_description,
|
||||||
'description' => $this->resource->description,
|
'description' => $this->resource->description,
|
||||||
|
'thumbnail_url' => $this->resource->thumbnail_path ?? null,
|
||||||
'price' => $this->resource->price,
|
'price' => $this->resource->price,
|
||||||
'stock_quantity' => $this->resource->stock_quantity,
|
'stock_quantity' => $this->resource->stock_quantity,
|
||||||
'active' => $this->resource->active,
|
'active' => $this->resource->active,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue