NASER add file relation to product list api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user