|
@@ 661-668 (lines=8) @@
|
| 658 |
|
* @param bool $strict |
| 659 |
|
* @return static |
| 660 |
|
*/ |
| 661 |
|
public function whereIn($key, $values, $strict = false) |
| 662 |
|
{ |
| 663 |
|
$values = $this->getArrayableItems($values); |
| 664 |
|
|
| 665 |
|
return $this->filter(function ($item) use ($key, $values, $strict) { |
| 666 |
|
return in_array(data_get($item, $key), $values, $strict); |
| 667 |
|
}); |
| 668 |
|
} |
| 669 |
|
|
| 670 |
|
/** |
| 671 |
|
* Filter items by the given key value pair using strict comparison. |
|
@@ 716-723 (lines=8) @@
|
| 713 |
|
* @param bool $strict |
| 714 |
|
* @return static |
| 715 |
|
*/ |
| 716 |
|
public function whereNotIn($key, $values, $strict = false) |
| 717 |
|
{ |
| 718 |
|
$values = $this->getArrayableItems($values); |
| 719 |
|
|
| 720 |
|
return $this->reject(function ($item) use ($key, $values, $strict) { |
| 721 |
|
return in_array(data_get($item, $key), $values, $strict); |
| 722 |
|
}); |
| 723 |
|
} |
| 724 |
|
|
| 725 |
|
/** |
| 726 |
|
* Filter items by the given key value pair using strict comparison. |