feat: implement FeaturedVariant and CatalogController for managing featured variants and catalog display

This commit is contained in:
2026-07-14 14:55:48 -03:00
parent 299a462283
commit c2efec8906
17 changed files with 200 additions and 61 deletions

View File

@@ -32,7 +32,7 @@ class FeaturedGroupController extends Controller
public function show(string $tenant, FeaturedGroup $featuredGroup): FeaturedGroupResource
{
abort_if($featuredGroup->tenant_codigo !== $tenant, 404);
return new FeaturedGroupResource($featuredGroup->load('featuredProducts'));
return new FeaturedGroupResource($featuredGroup->load('featuredVariants'));
}
public function update(UpdateFeaturedGroupRequest $request, string $tenant, FeaturedGroup $featuredGroup): FeaturedGroupResource