This commit is contained in:
paoloar77
2024-07-11 16:24:21 +02:00
parent 44de8a64d2
commit 911c3e0853
2 changed files with 16 additions and 1 deletions

View File

@@ -1744,3 +1744,14 @@ function getClienteByIdCodClienteInternet($codClienteInternet)
return $clienteinGM; return $clienteinGM;
} }
function getClienti() {
try {
$clienti = Clientegm::all();
dd($clienti);
} catch (\Exception $e) {
return null;
}
}

View File

@@ -2148,6 +2148,10 @@ Route::post('/pao1', function (Request $request) {
dd($request->all()); dd($request->all());
}); });
Route::post('/getclienti', function (Request $request) {
getClienti();
});
function updateCreate(Request $request) function updateCreate(Request $request)
{ {
@@ -2274,7 +2278,7 @@ function updateCreate(Request $request)
$cliente = $clienteinGM; $cliente = $clienteinGM;
} }
if ($cliente == null) { if ($cliente === null) {
$cliente = new Clientegm(); $cliente = new Clientegm();
} }