feat(website-type): add presentation fields and site logo relationship to WebsiteType model

This commit is contained in:
2026-07-31 11:39:17 -03:00
parent cf2beb2ff5
commit 3968a10f6a
6 changed files with 135 additions and 1 deletions

View File

@@ -37,6 +37,11 @@ class TenantResource extends JsonResource
fn () => $this->websiteType ? [
'codigo' => $this->websiteType->codigo,
'nombre' => $this->websiteType->nombre,
'primary_color' => $this->websiteType->primary_color,
'secondary_color' => $this->websiteType->secondary_color,
'danger_color' => $this->websiteType->danger_color,
'success_color' => $this->websiteType->success_color,
'site_logo' => $this->websiteType->siteLogo?->getTemporaryUrl(1440),
] : null
),
'extras' => $this->whenLoaded(