Untitled
Anonymous
Plain Text
09/04/2025 8:52 AM
571 B
19
Indexable
Never
Route::get('/reseller/products/show/{customerId}',[ResellerController::class,'frontendResellerProducts']);
function frontendResellerProducts($id)
{
$products = GeneralProduct::where('customer_id', $id)
->select('id','name','image','regular_price','discount_price','discount_percentage')
->where('is_approved', 1)
->where('status', 1)
->get();
return response()->json([
'message' => 'Seller products fetched successfully',
'products' => $products
], 200);
}Editor is loading...
Leave a Comment