Silent 6 年之前
父節點
當前提交
705fc18f9b
共有 1 個文件被更改,包括 2 次插入8 次删除
  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));
     }
 }