@@ 191-194 (lines=4) @@ | ||
188 | ]); |
|
189 | ||
190 | // Search by field and value |
|
191 | if (count($options) == 2) { |
|
192 | $collection = $collection->replace(['field' => $options[0]]) |
|
193 | ->replace(['value' => $options[1]]); |
|
194 | } |
|
195 | ||
196 | // Search by field, operator and value |
|
197 | if (count($options) == 3) { |
|
@@ 197-201 (lines=5) @@ | ||
194 | } |
|
195 | ||
196 | // Search by field, operator and value |
|
197 | if (count($options) == 3) { |
|
198 | $collection = $collection->replace(['field' => $options[0]]) |
|
199 | ->replace(['operator' => $options[1]]) |
|
200 | ->replace(['value' => $options[2]]); |
|
201 | } |
|
202 | ||
203 | // $this->with('category'); |
|
204 |