This commit is contained in:
paoloar77
2024-07-26 16:58:50 +02:00
parent 79695e9046
commit f53172bdf8

View File

@@ -2152,6 +2152,37 @@ Route::get('/getclienti', function () {
getClienti(); 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) { Route::post('/updatecreate', function (Request $request) {
Log::debug($request->all()); Log::debug($request->all());