From 4b47528ee52ace598c032978c530d8cd74acb4cf Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 13 Jun 2024 12:47:31 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 6e1649d1..efef7da0 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -282,9 +282,8 @@ function showDettOrdini() { $str = "Ordini"; - $orders = Order::orderBy('DataOra', 'desc')->take(2)->get(); - try { + $orders = Order::orderBy('DataOra', 'desc')->take(2)->get(); // Show the fields of the orders foreach ($orders as $order) {