diff --git a/routes/web.php b/routes/web.php index f3204b00..290a6f37 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1860,9 +1860,23 @@ Route::get('/autori_test', function () { } }); +function getvalstr($mystr, $value) { + return " " . $mystr . ": " . $value; + +} + Route::get('/test6', function () { $orders = Order::all(); - dd($orders); + + // Show the fields of the orders + foreach ($orders as $order) { + echo "Ordine: "; + getvalstr("Id", $order->id); + getvalstr("DataOra", $order->DataOra); + getvalstr("Totale", $order->Totale); + } + + }); Route::get('/test7/{name}', function ($name) {