NASER add file relation to product list api

This commit is contained in:
gholak tala
2026-05-18 16:24:20 +00:00
parent 8b3c050d17
commit 156b39ee7c
2 changed files with 2 additions and 2 deletions
@@ -119,7 +119,7 @@ class ProductController extends SuperController
{
// $this->getPrice();
// $this->auto_close_open();
$product = Product::with([])->where('active', 1)->get();
$product = Product::with(['file'])->where('active', 1)->get();
return response()->json($product);
}