Updated Presentation CRUD
make social_description optional Change-Id: I7181a88b1efd6cdd87404fd1f1fa4ffe5c7b4716 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
@@ -60,6 +60,7 @@ final class SummitEventValidationRulesFactory
|
|||||||
'groups' => 'sometimes|int_array',
|
'groups' => 'sometimes|int_array',
|
||||||
'occupancy' => 'sometimes|in:EMPTY,25%,50%,75%,FULL',
|
'occupancy' => 'sometimes|in:EMPTY,25%,50%,75%,FULL',
|
||||||
'selection_plan_id' => 'sometimes|integer',
|
'selection_plan_id' => 'sometimes|integer',
|
||||||
|
'disclaimer_accepted' => 'sometimes|boolean',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,6 +95,7 @@ final class SummitEventValidationRulesFactory
|
|||||||
// group event
|
// group event
|
||||||
'groups' => 'sometimes|int_array',
|
'groups' => 'sometimes|int_array',
|
||||||
'selection_plan_id' => 'sometimes|integer',
|
'selection_plan_id' => 'sometimes|integer',
|
||||||
|
'disclaimer_accepted' => 'sometimes|boolean',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +110,7 @@ final class SummitEventValidationRulesFactory
|
|||||||
return [
|
return [
|
||||||
'title' => 'required|string|max:255',
|
'title' => 'required|string|max:255',
|
||||||
'description' => 'required|string|max:1100',
|
'description' => 'required|string|max:1100',
|
||||||
'social_description' => 'required|string|max:110',
|
'social_description' => 'sometimes|string|max:110',
|
||||||
'attendees_expected_learnt' => 'required|string|max:1100',
|
'attendees_expected_learnt' => 'required|string|max:1100',
|
||||||
'will_all_speakers_attend' => 'sometimes|boolean',
|
'will_all_speakers_attend' => 'sometimes|boolean',
|
||||||
'type_id' => 'required|integer',
|
'type_id' => 'required|integer',
|
||||||
@@ -117,13 +119,14 @@ final class SummitEventValidationRulesFactory
|
|||||||
'links' => 'sometimes|url_array',
|
'links' => 'sometimes|url_array',
|
||||||
'tags' => 'sometimes|string_array',
|
'tags' => 'sometimes|string_array',
|
||||||
'extra_questions' => 'sometimes|extra_question_dto_array',
|
'extra_questions' => 'sometimes|extra_question_dto_array',
|
||||||
|
'disclaimer_accepted' => 'sometimes|boolean',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'title' => 'required|string|max:255',
|
'title' => 'required|string|max:255',
|
||||||
'description' => 'required|string|max:1100',
|
'description' => 'required|string|max:1100',
|
||||||
'social_description' => 'required|string|max:110',
|
'social_description' => 'sometimes|string|max:110',
|
||||||
'attendees_expected_learnt' => 'required|string|max:1100',
|
'attendees_expected_learnt' => 'required|string|max:1100',
|
||||||
'type_id' => 'required|integer',
|
'type_id' => 'required|integer',
|
||||||
'track_id' => 'required|integer',
|
'track_id' => 'required|integer',
|
||||||
@@ -132,6 +135,7 @@ final class SummitEventValidationRulesFactory
|
|||||||
'links' => 'sometimes|url_array',
|
'links' => 'sometimes|url_array',
|
||||||
'tags' => 'sometimes|string_array',
|
'tags' => 'sometimes|string_array',
|
||||||
'extra_questions' => 'sometimes|extra_question_dto_array',
|
'extra_questions' => 'sometimes|extra_question_dto_array',
|
||||||
|
'disclaimer_accepted' => 'sometimes|boolean',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user