[DOCS] 現代化 IoT API (B010) 通訊協議與文件中心 UI/UX 重整
This commit is contained in:
@@ -30,7 +30,7 @@ class MachineController extends AdminController
|
||||
$machines = $query->when($request->status, function ($query, $status) {
|
||||
return $query->where('status', $status);
|
||||
})
|
||||
->latest()
|
||||
->orderBy("last_heartbeat_at", "desc")->orderBy("id", "desc")
|
||||
->paginate($per_page)
|
||||
->withQueryString();
|
||||
|
||||
@@ -47,7 +47,7 @@ class MachineController extends AdminController
|
||||
->withCount(['slots as warning_count' => function ($q) {
|
||||
$q->whereBetween('expiry_date', [now()->toDateString(), now()->addDays(7)->toDateString()]);
|
||||
}])
|
||||
->latest()
|
||||
->orderBy("last_heartbeat_at", "desc")->orderBy("id", "desc")
|
||||
->paginate($per_page)
|
||||
->withQueryString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user