update whereBetween
This commit is contained in:
parent
26676223e4
commit
dd6977a4b9
|
|
@ -31,8 +31,7 @@ trait AnalyzeData
|
|||
// Lấy ngày cuối tháng
|
||||
$endOfMonth = $now->endOfMonth()->toDateString();
|
||||
$admins = Admin::all();
|
||||
$history = DB::table('tracking')->select('*')
|
||||
->whereBetween('tracking.created_at', [$startOfMonth, $endOfMonth])->orderBy('tracking.created_at', 'asc')->get();
|
||||
$history = DB::table('tracking')->select('*')->whereBetween('tracking.created_at', [$startOfMonth, $endOfMonth])->orderBy('tracking.created_at', 'asc')->get();
|
||||
$history = collect($history);
|
||||
$result = [];
|
||||
foreach ($admins as $admin) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue