feat(tenant): separate admin and storefront website types

This commit is contained in:
2026-09-17 14:25:46 -03:00
parent b9b5f8ec9c
commit 6bc784519f
31 changed files with 325 additions and 143 deletions

View File

@@ -23,11 +23,11 @@ class WebsiteExtrasResource extends JsonResource
);
return [
'website_type' => $this->websiteType ? [
'codigo' => $this->websiteType->codigo,
'nombre' => $this->websiteType->nombre,
'storefront_website_type' => $this->storefrontWebsiteType ? [
'codigo' => $this->storefrontWebsiteType->codigo,
'nombre' => $this->storefrontWebsiteType->nombre,
] : null,
'definitions' => $this->websiteType?->extras
'definitions' => $this->storefrontWebsiteType?->extras
->mapWithKeys(fn ($definition) => [
$definition->codigo => [
'codigo' => $definition->codigo,