diff --git a/app/Http/Controllers/API/EventController.php b/app/Http/Controllers/API/EventController.php index 44d7750..1854571 100644 --- a/app/Http/Controllers/API/EventController.php +++ b/app/Http/Controllers/API/EventController.php @@ -126,7 +126,7 @@ public function update(Request $request, Event $event) 'title' => 'required|string|max:255', 'short_description' => 'required|max:280', 'long_description' => 'required', - 'start_date' => 'required|date_format:Y-m-d H:i|after_or_equal:' . Carbon::parse($event->start_date)->format('Y-m-d H:i'), + 'start_date' => 'required|date_format:Y-m-d H:i|after_or_equal:today', 'end_date' => 'required|date_format:Y-m-d H:i|after_or_equal:start_date', 'event_type' => 'integer', 'recurrence_interval' => 'nullable|integer', diff --git a/app/Http/Controllers/EventController.php b/app/Http/Controllers/EventController.php index 99248bd..8acac4c 100644 --- a/app/Http/Controllers/EventController.php +++ b/app/Http/Controllers/EventController.php @@ -140,7 +140,7 @@ public function update(Request $request, Event $event) 'title' => 'required|string|max:255', 'short_description' => 'required|max:280', 'long_description' => 'required', - 'start_date' => 'required|date_format:Y-m-d H:i|after_or_equal:' . Carbon::parse($event->start_date)->format('Y-m-d H:i'), + 'start_date' => 'required|date_format:Y-m-d H:i|after_or_equal:today', 'end_date' => 'required|date_format:Y-m-d H:i|after_or_equal:start_date', 'event_type' => 'integer', 'recurrence_interval' => 'nullable|integer',