src/Entities/SpammerCollection.php
public function whereHostIn(array $hosts, $strict = false)
    {
        $values = $this->getArrayableItems($hosts);

        return $this->filter(function (Spammer $spammer) use ($values, $strict) {
            return in_array($spammer->host(), $values, $strict);
        });
    }
public function whereHostIn(array $hosts, $strict = false)
    {
        $values = $this->getArrayableItems($hosts);

        return $this->filter(function (Spammer $spammer) use ($values, $strict) {
            return in_array($spammer->host(), $values, $strict);
        });
    }
public function whereHostIn ( array $ hosts , $ strict = false ) { $ values = $ this -> getArrayableItems ( $ hosts ) ; return $ this -> filter ( function ( Spammer $ spammer ) use ( $ values , $ strict ) { return in_array ( $ spammer -> host ( ) , $ values , $ strict ) ; } ) ; }
Filter the spammer by the given hosts.

@param  array  $hosts
@param  bool   $strict

@return self
Filter the spammer by the given hosts .