protected function newAttributesQuery(array $attributes, $operator = '=')
	{
		$query = $this->newQuery();

		foreach ($attributes as $key => $value) {
			$query->where($key, $operator, $value);
		}

		return $query;
	}
protected function newAttributesQuery(array $attributes, $operator = '=')
	{
		$query = $this->newQuery();

		foreach ($attributes as $key => $value) {
			$query->where($key, $operator, $value);
		}

		return $query;
	}
protected function newAttributesQuery ( array $ attributes , $ operator = '=' ) { $ query = $ this -> newQuery ( ) ; foreach ( $ attributes as $ key => $ value ) { $ query -> where ( $ key , $ operator , $ value ) ; } return $ query ; }
Get a new query that searches by attributes.

@param  array  $attributes
@param  string $operator   Default: '='

@return mixed
Get a new query that searches by attributes .