Silent hace 7 años
padre
commit
de08691111
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/TestController.php

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

xqd
@@ -16,7 +16,7 @@ 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')->each(function ($item) {
-            return substr($item, 0, 10);
+            $item = substr($item, 0, 10);
         });
         dd($items);
     }