@@ -24,10 +24,10 @@ |
||
24 | 24 | $options['scope'] = $request->scope; |
25 | 25 | } |
26 | 26 | |
27 | - $texts = Text::where(function ($q) use ($options) { |
|
27 | + $texts = Text::where(function($q) use ($options) { |
|
28 | 28 | foreach ($options as $k => $v) { |
29 | 29 | if ($k == 'keyword') { |
30 | - $q->where(function ($query) use ($v) { |
|
30 | + $q->where(function($query) use ($v) { |
|
31 | 31 | $query->where('key', 'LIKE', '%' . $v . '%')->orWhere('value', 'LIKE', '%' . $v . '%'); |
32 | 32 | }); |
33 | 33 | } else { |