@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | public function apply($model, Repository $repository) |
19 | 19 | { |
20 | - $query = $model->where(function ($query) use ($repository) { |
|
20 | + $query = $model->where(function($query) use ($repository) { |
|
21 | 21 | $firstColumn = array_shift($this->columns); |
22 | 22 | |
23 | 23 | if (strpos($firstColumn, '.')) { |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | $columnRelation = explode('.', $column); |
44 | 44 | |
45 | 45 | if ($or) { |
46 | - $query->orWhereHas($columnRelation[0], function ($subquery) use ($columnRelation) { |
|
46 | + $query->orWhereHas($columnRelation[0], function($subquery) use ($columnRelation) { |
|
47 | 47 | $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%'); |
48 | 48 | }); |
49 | 49 | } else { |
50 | - $query->whereHas($columnRelation[0], function ($subquery) use ($columnRelation) { |
|
50 | + $query->whereHas($columnRelation[0], function($subquery) use ($columnRelation) { |
|
51 | 51 | $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%'); |
52 | 52 | }); |
53 | 53 | } |