testcli
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user