Browse Source

分享图片

Silent 7 năm trước cách đây
mục cha
commit
fbc57173c3
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/Http/Controllers/TestController.php

+ 3 - 1
app/Http/Controllers/TestController.php

xqd
@@ -15,7 +15,9 @@ class TestController extends Controller
 {
     public function index(Request $request)
     {
-        $items = CheckCard::where('student_id', 7)->whereNotNull('begin_date_time')->whereNotNull('end_date_time')->get()->pluck('begin_date_time');
+        $items = CheckCard::where('student_id', 7)->whereNotNull('begin_date_time')->whereNotNull('end_date_time')->get()->pluck('begin_date_time')->each(function ($item) {
+            return substr($item, 0, 10);
+        });
         dd($items);
     }
 }