feat(website-type): add presentation fields and site logo relationship to WebsiteType model
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user