fixed product search

pull/36/head
A1Gard 9 months ago
parent 54e1d13337
commit c01a88b731

@ -176,7 +176,7 @@ class ProductController extends Controller
} }
} }
if ($request->has('q')){ if ($request->has('q')){
$n->where('name','LIKE','%'.$request->input('q').'%'); $n->where('name->'.config('app.xlang_main'),'LIKE','%'.$request->input('q').'%');
} }
$products = $n->paginate(20); $products = $n->paginate(20);
return view('admin.product.productIndex', compact('products')); return view('admin.product.productIndex', compact('products'));

Loading…
Cancel
Save