feat(events): support event cover attachments

This commit is contained in:
2026-09-18 14:33:21 -03:00
parent 22ef5619f3
commit 8d2250d247
5 changed files with 37 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ class UpdateEventRequest extends FormRequest
return [
'title' => ['required', 'string', 'max:255'],
'location' => ['required', 'string', 'max:255'],
'attachment_id' => ['sometimes', 'nullable', 'integer', Rule::exists('attachments', 'id')->where('type', 'image')],
'social_media' => ['sometimes', 'array'],
'social_media.*' => ['required', 'array:code,url,orden'],
'social_media.*.code' => [