original_string: public function apply($constraints) : Builder
  	{
  		if ($constraints && $this->type == 'product_categories') {
  			return $this->builder->whereIn('category_id', $constraints);
  		}
  
  		if ($constraints && is_array($constraints)) {
  			return $this->filterByConstraints($constraints);
  		}
  
  		return $this->builder;
  	}
code: public function apply($constraints) : Builder
  	{
  		if ($constraints && $this->type == 'product_categories') {
  			return $this->builder->whereIn('category_id', $constraints);
  		}
  
  		if ($constraints && is_array($constraints)) {
  			return $this->filterByConstraints($constraints);
  		}
  
  		return $this->builder;
  	}
code_tokens: public function apply ( $ constraints ) : Builder { if ( $ constraints && $ this -> type == 'product_categories' ) { return $ this -> builder -> whereIn ( 'category_id' , $ constraints ) ; } if ( $ constraints && is_array ( $ constraints ) ) { return $ this -> filterByConstraints ( $ constraints ) ; } return $ this -> builder ; }
docstring: Suggest products based on the given tags.
  
  @param  array $tags
  
  @return Builder
docstring_tokens: Suggest products based on the given tags .