src/Traits/HasTaxonomies.php
public function scopeWithTerms($query, $terms, $taxonomy)
    {
        $terms = TaxableUtils::makeTermsArray($terms);

        foreach ($terms as $term)
            $this->scopeWithTerm($query, $term, $taxonomy);

        return $query;
    }
public function scopeWithTerms($query, $terms, $taxonomy)
    {
        $terms = TaxableUtils::makeTermsArray($terms);

        foreach ($terms as $term)
            $this->scopeWithTerm($query, $term, $taxonomy);

        return $query;
    }
public function scopeWithTerms ( $ query , $ terms , $ taxonomy ) { $ terms = TaxableUtils :: makeTermsArray ( $ terms ) ; foreach ( $ terms as $ term ) $ this -> scopeWithTerm ( $ query , $ term , $ taxonomy ) ; return $ query ; }
Scope by given terms.

@param  object  $query
@param  array   $terms
@param  string  $taxonomy
@return mixed
Scope by given terms .