Browse Source

分享图片

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

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

xqd
@@ -17,7 +17,7 @@ class TestController extends Controller
     {
         $items = CheckCard::where('student_id', 7)->whereNotNull('begin_date_time')->whereNotNull('end_date_time')->get()->pluck('begin_date_time')->map(function ($item) {
             return substr($item, 0, 10);
-        });
+        })->unique();
         dd($items);
     }
 }