|
@@ -52,7 +52,7 @@ class ActivityReward extends Controller
|
|
|
'sub_title' => ['required', 'string', 'min:1', 'max:140'],
|
|
'sub_title' => ['required', 'string', 'min:1', 'max:140'],
|
|
|
'start_time' => ['required', 'date', 'date_format:Y-m-d'],
|
|
'start_time' => ['required', 'date', 'date_format:Y-m-d'],
|
|
|
'end_time' => ['required', 'date', 'date_format:Y-m-d'],
|
|
'end_time' => ['required', 'date', 'date_format:Y-m-d'],
|
|
|
- 'detail_image' => [],
|
|
|
|
|
|
|
+ 'detail_image' => ['required', 'url', 'regex:/\.(jpeg|jpg|png|webp)$/i'],
|
|
|
]);
|
|
]);
|
|
|
ActivityRewardService::submit($params);
|
|
ActivityRewardService::submit($params);
|
|
|
DB::commit();
|
|
DB::commit();
|