排序
This commit is contained in:
@@ -60,7 +60,7 @@ class ProductController extends BaseMiniController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$pageSize = (int) $request->input('pageSize', 10);
|
$pageSize = (int) $request->input('pageSize', 10);
|
||||||
$paginator = $query->orderBy('sort', 'desc')
|
$paginator = $query->orderBy('sort')
|
||||||
->orderBy('id')
|
->orderBy('id')
|
||||||
->paginate($pageSize);
|
->paginate($pageSize);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user