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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ use Illuminate\Http\Request;
|
||||
|
||||
Route::get('/refPricer', function () {
|
||||
// $RPrices = Http::get('https://pricing.liman.gold/pricingApi', [])->json();
|
||||
$RPrices = Http::get('http://37.32.11.142:4949/api/free', [])->json();
|
||||
$RPrices = Http::get('http://109.122.246.48:4949/api/free', [])->json();
|
||||
|
||||
$products = Product::with([])->whereNotNull('reading_method')->get();
|
||||
foreach ($products as $product) {
|
||||
|
||||
Reference in New Issue
Block a user