diff --git a/app/Http/Resources/Api/Admin/ProductResource.php b/app/Http/Resources/Api/Admin/ProductResource.php index 901572e..ae61dad 100644 --- a/app/Http/Resources/Api/Admin/ProductResource.php +++ b/app/Http/Resources/Api/Admin/ProductResource.php @@ -20,7 +20,7 @@ class ProductResource extends JsonResource 'slug' => $this->slug, 'product_type' => $this->product_type, 'page_type' => $this->resolvePageType($this->product_type), - 'category' => $this->whenLoaded('category', fn() => $this->category?->name), + 'product_categories_id' => $this->whenLoaded('category', fn() => $this->category?->id), 'cpu' => $this->cpu, 'ram' => $this->ram, 'disk' => $this->disk,