mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update order filter
This commit is contained in:
parent
2d21fa3fb7
commit
9d9866689d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user