Ken hai 1 semana
pai
achega
14e179b723
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/admin/Bet.php

+ 2 - 2
app/Http/Controllers/admin/Bet.php

@@ -24,8 +24,8 @@ class Bet extends Controller
                 'id' => ['nullable', 'string'],
                 'status' => ['nullable', 'integer', 'in:1,2'],
                 'username' => ['nullable', 'string', 'min:1'],
-                'start_time' => ['nullable', 'date', 'date_format:Y-m-d', 'required_with:end_time'],
-                'end_time' => ['nullable', 'date', 'date_format:Y-m-d', 'required_with:start_time'],
+                'start_time' => ['required', 'date', 'date_format:Y-m-d', 'required_with:end_time'],
+                'end_time' => ['required', 'date', 'date_format:Y-m-d', 'required_with:start_time'],
                 'is_winner' => ['nullable', 'integer', 'in:0,1'],
             ]);