mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update
This commit is contained in:
parent
a60d68a13f
commit
5fae1f2bd8
@ -25,7 +25,7 @@ class OrderController extends Controller
|
|||||||
{
|
{
|
||||||
$model = Order::where('user_id', $request->session()->get('id'))
|
$model = Order::where('user_id', $request->session()->get('id'))
|
||||||
->orderBy('created_at', 'DESC');
|
->orderBy('created_at', 'DESC');
|
||||||
if ($request->input('status')) {
|
if (!empty($request->input('status'))) {
|
||||||
$model->where('status', $request->input('status'));
|
$model->where('status', $request->input('status'));
|
||||||
}
|
}
|
||||||
$order = $model->get();
|
$order = $model->get();
|
||||||
|
Loading…
Reference in New Issue
Block a user