diff --git a/routes/web.php b/routes/web.php index 7a8ab84d..429f3337 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2152,6 +2152,37 @@ Route::get('/getclienti', function () { getClienti(); }); +Route::get('/testcli', function () { + $cliente = null; + $CodClienteInternet = null; + + if ($cliente === null) { + $cliente = new Clientegm(); + } + + if ($CodClienteInternet > 0) { + $cliente->CodClienteInternet = $CodClienteInternet; + } + $cliente->Nominativo = 'Prova Prova2'; + $cliente->Indirizzo = 'via prova 1'; + $cliente->Citta = 'Rimini'; + $cliente->Cap = '47900'; + $cliente->Provincia = 'RN'; + $cliente->Telefono = ''; + $cliente->Email = 'email@email.com'; + $cliente->CodClienteGM = ''; + $cliente->IdNazione = 227; // ITALIA + try { + $cliente->save(); + + } catch (\Throwable $th) { + dd($th); + } + + + dd($cliente); +}); + Route::post('/updatecreate', function (Request $request) { Log::debug($request->all());