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(); }