Build world campaigns rewards and recaps
This commit is contained in:
@@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user