Ken hace 1 semana
padre
commit
c9326b8a66
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/Http/Controllers/admin/Home.php

+ 4 - 0
app/Http/Controllers/admin/Home.php

@@ -21,8 +21,12 @@ class Home extends Controller
                 'start_date' => ['nullable', 'date_format:Y-m-d'],
                 'end_date' => ['nullable', 'date_format:Y-m-d', 'after_or_equal:start_date'],
             ]);
+
             $start = request()->input('start_date', date('Y-m-d'));
             $end = request()->input('end_date', date('Y-m-d'));
+
+            return $this->success($end);
+
             $end = Carbon::createFromFormat('Y-m-d', $end)->addDay()->format('Y-m-d');
             $query = PaymentOrder::query();