aa
This commit is contained in:
@@ -5884,12 +5884,22 @@ Route::get('/test30/{id}', function ($id) {
|
|||||||
dd($clienti);
|
dd($clienti);
|
||||||
});
|
});
|
||||||
Route::get('/testclientegm/{id}', function ($id) {
|
Route::get('/testclientegm/{id}', function ($id) {
|
||||||
$cliente = Clientegm::where('IdInternet', (int) $id)->first();
|
$myidInternet = (int) $id;
|
||||||
if ($cliente) {
|
$cliente = null;
|
||||||
echo $cliente->Nominativo . ' ';
|
echo 'myidInternet:' . $myidInternet;
|
||||||
echo $cliente->IdInternet . ' ';
|
|
||||||
|
if ($myidInternet > 0) {
|
||||||
|
$clienteinGM = Clientegm::where('IdInternet', $myidInternet)->first();
|
||||||
|
// write in the console the array "$clients"
|
||||||
|
|
||||||
|
if ($clienteinGM) {
|
||||||
|
echo 'Cliente su GM! ' . json_encode($clienteinGM) . 'con IdInternet=' . $myidInternet;
|
||||||
|
$cliente = $clienteinGM;
|
||||||
}
|
}
|
||||||
//dd($cliente);
|
}
|
||||||
|
|
||||||
|
echo "Cliente:"
|
||||||
|
json_encode($cliente);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/test31', function () {
|
Route::get('/test31', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user