From 04b485d19c22a42e450a9ffc7c5df7e77de73ee0 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 13 Jun 2024 09:13:17 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index f089836f..24011844 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -6,6 +6,7 @@ use App\Orderdetail; use Codexshaper\WooCommerce\Facades\Order; use Codexshaper\WooCommerce\Facades\Product; use Codexshaper\WooCommerce\Facades\Variation; +use Illuminate\Support\Facades\Schema; function showarray($array) { @@ -244,7 +245,9 @@ function showOrdini() try { - $orders = Orderdetail::orderBy('Codice', 'desc') + $str = Schema::getColumnListing('orders'); + + /*$orders = Orderdetail::orderBy('Codice', 'desc') ->take(10) ->get(); @@ -256,7 +259,7 @@ function showOrdini() $str .= getvalstr("Totale", $order->Totale); $str .= '
'; - } + }*/ } catch (\Exception $e) { return "Errore: " . $e->getMessage(); }