feat: exclude attributes from product list response in ProductController
This commit is contained in:
@@ -20,7 +20,6 @@ class ProductVariantResource extends JsonResource
|
|||||||
'producto_id' => $this->producto_id,
|
'producto_id' => $this->producto_id,
|
||||||
'slug' => $this->slug,
|
'slug' => $this->slug,
|
||||||
'nombre' => $this->nombre,
|
'nombre' => $this->nombre,
|
||||||
'stock' => $this->stock,
|
|
||||||
'descripcion' => $this->descripcion,
|
'descripcion' => $this->descripcion,
|
||||||
'precio' => $this->precio,
|
'precio' => $this->precio,
|
||||||
'product' => ProductResource::make($this->whenLoaded('product')),
|
'product' => ProductResource::make($this->whenLoaded('product')),
|
||||||
|
|||||||
Reference in New Issue
Block a user