feat(tenant): separate admin and storefront website types
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user