Build world campaigns rewards and recaps

This commit is contained in:
2026-05-01 11:44:41 +02:00
parent 28e7e46e13
commit 257b0dbef6
100 changed files with 11300 additions and 367 deletions

View File

@@ -32,6 +32,13 @@ class StoreGroupChallengeRequest extends FormRequest
'linked_collection_id' => ['nullable', 'integer'],
'linked_project_id' => ['nullable', 'integer'],
'featured_artwork_id' => ['nullable', 'integer'],
'outcomes' => ['nullable', 'array'],
'outcomes.*.artwork_id' => ['required_with:outcomes', 'integer'],
'outcomes.*.outcome_type' => ['required_with:outcomes', 'in:' . implode(',', (array) config('groups.challenges.outcome_types', []))],
'outcomes.*.position' => ['nullable', 'integer', 'min:1'],
'outcomes.*.sort_order' => ['nullable', 'integer', 'min:0'],
'outcomes.*.title_override' => ['nullable', 'string', 'max:120'],
'outcomes.*.note' => ['nullable', 'string', 'max:2000'],
];
}
}