We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766db08 commit 01694d1Copy full SHA for 01694d1
tests/FilterTest.php
@@ -39,6 +39,19 @@ public function it_can_filter_models_by_partial_property_by_default()
39
$this->assertCount(1, $models);
40
}
41
42
+ /** @test */
43
+ public function it_can_filter_models_by_an_array_as_filter_value()
44
+ {
45
+ $models = $this
46
+ ->createQueryFromFilterRequest([
47
+ 'name' => ['first' => $this->models->first()->name],
48
+ ])
49
+ ->allowedFilters('name')
50
+ ->get();
51
+
52
+ $this->assertCount(1, $models);
53
+ }
54
55
/** @test */
56
public function it_can_filter_partially_and_case_insensitive()
57
{
0 commit comments