Silent 6 years ago
parent
commit
705fc18f9b
1 changed files with 2 additions and 8 deletions
  1. 2 8
      app/Http/Controllers/TestController.php

+ 2 - 8
app/Http/Controllers/TestController.php

xqd
@@ -15,13 +15,7 @@ class TestController extends Controller
 {
     public function index(Request $request)
     {
-        $today = Carbon::today();
-        $this_week_begin = null;
-        while($today->dayOfWeekIso != 1) {
-            $today = $today->subDay();
-        }
-        $this_week_begin = $today->toDateTimeString();
-        $this_week_end = $today->addDays(7)->toDateTimeString();
-        dd($this_week_begin, $this_week_end);
+        $text = 'aa:';
+        dd(explode(':', $text));
     }
 }