update order filter

This commit is contained in:
Tokumeikoi 2020-02-15 22:58:31 +08:00
parent 2d21fa3fb7
commit 9d9866689d

View File

@ -26,6 +26,9 @@ class OrderController extends Controller
if ($request->input('id')) {
$orderModel->where('id', $request->input('id'));
}
if ($request->input('user_id')) {
$orderModel->where('user_id', $request->input('user_id'));
}
$total = $orderModel->count();
$res = $orderModel->forPage($current, $pageSize)
->get();