diff --git a/routes/web.php b/routes/web.php index 916bc6f7..e4dc2278 100644 --- a/routes/web.php +++ b/routes/web.php @@ -703,8 +703,9 @@ Route::get('/artlibronuovo', function () { echo "Finito"; }); -/* + Route::get('/artlibrousato', function () { + /* set_time_limit(0); $articles = Article::join(DB::raw('(SELECT IdArticolo, MAX(DataOra) AS data FROM T_WEB_Articoli GROUP BY IdArticolo) b'), function ($join) { $join->on('T_WEB_Articoli.IdArticolo', '=', 'b.IdArticolo') @@ -739,14 +740,6 @@ Route::get('/artlibrousato', function () { //->take(5) //->orderBy('ListaAutori') ->get(); - /* - ->chunk(100, function ($articles) { - foreach($articles as $article){ - echo $article->Id.' '. $article->IdArticolo. ' '. $article->Titolo .' '. $article->DescrizioneStatoProdotto. ' ' . $article->DescrizioneFormato .'
'; - } - - }); - */ //dd($articles); //ob_implicit_flush(true); foreach ($articles as $article) { @@ -820,7 +813,8 @@ Route::get('/artlibrousato', function () { } } echo "Finito"; -}); */ + */ +}); Route::get( '/test2',