feat(tenant): add social media functionality with validation, synchronization, and tests

This commit is contained in:
2026-07-23 15:03:57 -03:00
parent c66d2019d6
commit 25891cefbc
7 changed files with 178 additions and 7 deletions

View File

@@ -74,6 +74,14 @@ class UpdateTenantRequest extends FormRequest
'hero_bg_image' => ['nullable', new ImageOrBase64Rule],
'main_carousel_images' => ['sometimes', 'array'],
'main_carousel_images.*' => ['required', 'distinct', new ImageOrBase64Rule],
'social_media' => ['sometimes', 'array'],
'social_media.*.code' => [
'required',
'string',
'distinct',
Rule::exists('social_media', 'code'),
],
'social_media.*.url' => ['required', 'url', 'max:2048'],
'hero_config' => ['nullable', 'array'],
'hero_config.title_html' => ['nullable', 'string'],
'hero_config.description_html' => ['nullable', 'string'],