feat(tenant): provision Desfile Pura Tendencia and extend tenant customization

- Add Desfile Pura Tendencia tenant migration with catalog, variants, event, menus and assets
- Support tenant header/footer background images
- Add configurable cart visibility
- Update tenant seeding and API resources
- Add migration and bootstrap feature tests
This commit is contained in:
2026-08-12 13:53:22 -03:00
parent 36c1c185ee
commit f50d3d0587
13 changed files with 772 additions and 0 deletions

View File

@@ -29,12 +29,15 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
'footer_bg_color',
'header_logo_id',
'footer_logo_id',
'header_bg_image_id',
'footer_bg_image_id',
'website_type_code',
'search_product_layout',
'search_group_layout',
'search_items_per_page',
'display_categories',
'display_seach_bar',
'display_cart',
'event_title',
'event_location',
'event_date_text',
@@ -49,6 +52,7 @@ class Tenant extends Model
'search_items_per_page' => 12,
'display_categories' => true,
'display_seach_bar' => true,
'display_cart' => true,
];
public function getRouteKeyName(): string
@@ -69,6 +73,7 @@ class Tenant extends Model
'search_items_per_page' => 'integer',
'display_categories' => 'boolean',
'display_seach_bar' => 'boolean',
'display_cart' => 'boolean',
];
}
@@ -88,6 +93,22 @@ class Tenant extends Model
return $this->belongsTo(Attachment::class, 'footer_logo_id');
}
/**
* @return BelongsTo<Attachment, $this>
*/
public function headerBackgroundImage(): BelongsTo
{
return $this->belongsTo(Attachment::class, 'header_bg_image_id');
}
/**
* @return BelongsTo<Attachment, $this>
*/
public function footerBackgroundImage(): BelongsTo
{
return $this->belongsTo(Attachment::class, 'footer_bg_image_id');
}
/**
* @return BelongsTo<WebsiteType, $this>
*/