Skip to content

Commit

Permalink
Revert aggregate changes (#14994)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and taylorotwell committed Aug 24, 2016
1 parent 876189b commit 509bef6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1664,51 +1664,51 @@ public function count($columns = '*')
* Retrieve the minimum value of a given column.
*
* @param string $column
* @return float|int
* @return mixed
*/
public function min($column)
{
return $this->numericAggregate(__FUNCTION__, [$column]);
return $this->aggregate(__FUNCTION__, [$column]);
}

/**
* Retrieve the maximum value of a given column.
*
* @param string $column
* @return float|int
* @return mixed
*/
public function max($column)
{
return $this->numericAggregate(__FUNCTION__, [$column]);
return $this->aggregate(__FUNCTION__, [$column]);
}

/**
* Retrieve the sum of the values of a given column.
*
* @param string $column
* @return float|int
* @return mixed
*/
public function sum($column)
{
return $this->numericAggregate(__FUNCTION__, [$column]);
return $this->aggregate(__FUNCTION__, [$column]);
}

/**
* Retrieve the average of the values of a given column.
*
* @param string $column
* @return float|int
* @return mixed
*/
public function avg($column)
{
return $this->numericAggregate(__FUNCTION__, [$column]);
return $this->aggregate(__FUNCTION__, [$column]);
}

/**
* Alias for the "avg" method.
*
* @param string $column
* @return float|int
* @return mixed
*/
public function average($column)
{
Expand Down

0 comments on commit 509bef6

Please sign in to comment.