@@ 201-204 (lines=4) @@ | ||
198 | ]); |
|
199 | ||
200 | // Search by field and value |
|
201 | if (count($options) == 2) { |
|
202 | $collection = $collection->replace(['field' => $options[0]]) |
|
203 | ->replace(['value' => $options[1]]); |
|
204 | } |
|
205 | ||
206 | // Search by field, operator and value |
|
207 | if (count($options) == 3) { |
|
@@ 207-211 (lines=5) @@ | ||
204 | } |
|
205 | ||
206 | // Search by field, operator and value |
|
207 | if (count($options) == 3) { |
|
208 | $collection = $collection->replace(['field' => $options[0]]) |
|
209 | ->replace(['operator' => $options[1]]) |
|
210 | ->replace(['value' => $options[2]]); |
|
211 | } |
|
212 | ||
213 | // $this->with('category'); |
|
214 |