按最后修改排序
This commit is contained in:
parent
7a52380fa3
commit
607f9ee280
|
|
@ -18,7 +18,7 @@ class MenusController extends Controller
|
|||
{
|
||||
public function latestProducts()
|
||||
{
|
||||
$products = ProductRepo::getBuilder()->orderByDesc('created_at')->paginate(40);
|
||||
$products = ProductRepo::getBuilder()->orderByDesc('updated_at')->paginate(40);
|
||||
return view("HeaderMenu::latest_products", ['products' => $products]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue