From 1824f30a94fcc77d8b99ef948a47c613b5b3e151 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 15 Jun 2024 17:32:36 +0200 Subject: [PATCH] aa --- app/Http/Controllers/TestPaoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TestPaoController.php b/app/Http/Controllers/TestPaoController.php index 0cd9cc6e..e934a591 100644 --- a/app/Http/Controllers/TestPaoController.php +++ b/app/Http/Controllers/TestPaoController.php @@ -26,9 +26,9 @@ class TestPaoController extends Controller public function getProductBySku($sku) { echo "getProductBySku:" . $sku; + $product = Product::where('sku', $sku)->first(); /* // Estrai il prodotto utilizzando il codice SKU - $product = Product::where('sku', $sku)->first(); if ($product) { // Ritorna il prodotto trovato come JSON