@@ -41,11 +41,11 @@ |
||
41 | 41 | $columnRelation = explode('.', $column); |
42 | 42 | |
43 | 43 | if ($or) { |
44 | - $query->orWhereHas($columnRelation[0], function ($subquery) use ($columnRelation) { |
|
44 | + $query->orWhereHas($columnRelation[0], function($subquery) use ($columnRelation) { |
|
45 | 45 | $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%'); |
46 | 46 | }); |
47 | 47 | } else { |
48 | - $query->whereHas($columnRelation[0], function ($subquery) use ($columnRelation) { |
|
48 | + $query->whereHas($columnRelation[0], function($subquery) use ($columnRelation) { |
|
49 | 49 | $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%'); |
50 | 50 | }); |
51 | 51 | } |