This commit is contained in:
paoloar77
2024-06-13 09:08:18 +02:00
parent 0ee373b2ce
commit 8ee685e4a5

View File

@@ -242,10 +242,12 @@ function showOrdini()
$str = "Ordini"; $str = "Ordini";
$orders = Orderdetail::orderBy('id', 'desc')->take(2)->get();
try { try {
$orders = Orderdetail::orderBy('id', 'desc')
->take(2)
->get();
// Show the fields of the orders // Show the fields of the orders
foreach ($orders as $order) { foreach ($orders as $order) {
$str .= "Ordine: "; $str .= "Ordine: ";