feat: add hero_config and event_config to Tenant model with validation and migration

This commit is contained in:
2026-07-14 11:08:59 -03:00
parent ca4fea6bcd
commit 2910d3f929
5 changed files with 68 additions and 0 deletions

View File

@@ -61,6 +61,17 @@ class StoreTenantRequest extends FormRequest
'footer_bg_color' => ['required', 'string', 'regex:/^#([a-fA-F0-9]{3,4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/'],
'header_logo' => $logoRule,
'footer_logo' => $logoRule,
'hero_config' => ['nullable', 'array'],
'hero_config.background_image' => ['nullable', 'string'],
'hero_config.title_html' => ['nullable', 'string'],
'hero_config.description_html' => ['nullable', 'string'],
'hero_config.button_text' => ['nullable', 'string'],
'hero_config.button_href' => ['nullable', 'string'],
'event_config' => ['nullable', 'array'],
'event_config.title' => ['nullable', 'string'],
'event_config.location' => ['nullable', 'string'],
'event_config.dates' => ['nullable', 'array'],
'event_config.dates.*' => ['required', 'string'],
];
}
}