This commit is contained in:
paoloar77
2024-08-13 15:22:21 +02:00
parent 3e480c5b7e
commit deb8472fd3
3 changed files with 24 additions and 25 deletions

View File

@@ -2021,3 +2021,23 @@ function getClienti()
return null;
}
}
function getvalstr($mystr, $value, $separato = false)
{
$my = '';
if ($mystr) {
$my = " " . $mystr . ": " . $value;
} else {
$my = $value;
if (!$separato) {
$my = " " . $value;
}
}
if ($separato) {
$my = '[' . $my . '] ';
}
return $my;
}

View File

@@ -1,4 +1,3 @@
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
@@ -8,12 +7,12 @@
],
"license": "MIT",
"require": {
"php": "^7.2.5|^8.0",
"php": "^8.2",
"codexshaper/laravel-woocommerce": "^3.0.4",
"fideloper/proxy": "^4.4",
"guzzlehttp/guzzle": "^6.3.1|^7.0.1",
"laravel/framework": "^7.29",
"laravel/tinker": "^2.5",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.9.0",
"spatie/laravel-backup": "^6"
},
"require-dev": {

View File

@@ -1679,26 +1679,6 @@ Route::get('/autori_test', function () {
}
});
function getvalstr($mystr, $value, $separato = false)
{
$my = '';
if ($mystr) {
$my = " " . $mystr . ": " . $value;
} else {
$my = $value;
if (!$separato) {
$my = " " . $value;
}
}
if ($separato) {
$my = '[' . $my . '] ';
}
return $my;
}
Route::get('/test7/{name}', function ($name) {
$articles = Article::join(DB::raw('(SELECT IdArticolo, MAX(DataOra) AS data FROM T_WEB_Articoli WHERE Titolo LIKE \'%' . $name . '%\' GROUP BY IdArticolo) b'), function ($join) {
$join->on('T_WEB_Articoli.IdArticolo', '=', 'b.IdArticolo')