From 0ee373b2cefdfdfaec5c4de13e04dc92ea260905 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 13 Jun 2024 09:06:26 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 0fca4090..a71a2e7b 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -242,7 +242,7 @@ function showOrdini() $str = "Ordini"; - $orders = Orderdetail::take(2)->get(); + $orders = Orderdetail::orderBy('id', 'desc')->take(2)->get(); try {