atrr option cat
This commit is contained in:
parent
6cd704b87e
commit
140002cbf0
|
|
@ -43,9 +43,9 @@ class FilterOptions extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceCon
|
|||
$query = $this->getRepositoryInstance()->scopeQuery(function ($query) use ($request) {
|
||||
|
||||
$query->where('attribute_id',$request->get('attribute_id'));
|
||||
foreach ($request->except($this->requestException) as $input => $value) {
|
||||
$query->whereIn($input, array_map('trim', explode(',', $value)));
|
||||
}
|
||||
// foreach ($request->except($this->requestException) as $input => $value) {
|
||||
// $query->whereIn($input, array_map('trim', explode(',', $value)));
|
||||
// }
|
||||
|
||||
if($key = $request->input('search')){
|
||||
$query->where('admin_name','like', '%'.$key.'%');
|
||||
|
|
|
|||
Loading…
Reference in New Issue