feat: add hero background image functionality to Tenant model and related requests, resources, and seeder

This commit is contained in:
2026-07-14 13:58:49 -03:00
parent b4b888adef
commit 38f36a3a23
8 changed files with 108 additions and 5 deletions

View File

@@ -72,8 +72,8 @@ class UpdateTenantRequest extends FormRequest
'footer_bg_color' => ['nullable', '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_bg_image' => ['nullable', new ImageOrBase64Rule()],
'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'],