original_string: protected function filterByConstraints($constraints) : Builder
  	{
  		$this->builder->where(function($query) use ($constraints) {
  			foreach ($constraints as $filter) {
  				if (trim($filter) != '') {
  					$query->orWhere('tags', 'like', '%' . $filter . '%');
  				}
  			}
  
  			return $query;
  		});
  
  		return $this->builder;
  	}
code: protected function filterByConstraints($constraints) : Builder
  	{
  		$this->builder->where(function($query) use ($constraints) {
  			foreach ($constraints as $filter) {
  				if (trim($filter) != '') {
  					$query->orWhere('tags', 'like', '%' . $filter . '%');
  				}
  			}
  
  			return $query;
  		});
  
  		return $this->builder;
  	}
code_tokens: protected function filterByConstraints ( $ constraints ) : Builder { $ this -> builder -> where ( function ( $ query ) use ( $ constraints ) { foreach ( $ constraints as $ filter ) { if ( trim ( $ filter ) != '' ) { $ query -> orWhere ( 'tags' , 'like' , '%' . $ filter . '%' ) ; } } return $ query ; } ) ; return $ this -> builder ; }
docstring: Filter the query by the given constraints.
  
  @param  array $constraints
  
  @return Builder
docstring_tokens: Filter the query by the given constraints .