aa
This commit is contained in:
@@ -5884,12 +5884,22 @@ Route::get('/test30/{id}', function ($id) {
|
||||
dd($clienti);
|
||||
});
|
||||
Route::get('/testclientegm/{id}', function ($id) {
|
||||
$cliente = Clientegm::where('IdInternet', (int) $id)->first();
|
||||
if ($cliente) {
|
||||
echo $cliente->Nominativo . ' ';
|
||||
echo $cliente->IdInternet . ' ';
|
||||
$myidInternet = (int) $id;
|
||||
$cliente = null;
|
||||
echo 'myidInternet:' . $myidInternet;
|
||||
|
||||
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 () {
|
||||
|
||||
Reference in New Issue
Block a user