max() public method

Retrieve the maximum value of a given column.
public max ( string $column ) : mixed
$column string
return mixed
Exemplo n.º 1
0
 /**
  * Retrieve the maximum value of a given column.
  *
  * @param string $column
  * @return float|int 
  * @static 
  */
 public static function max($column)
 {
     return \Illuminate\Database\Query\Builder::max($column);
 }
 /**
  * Get the aggregate max.
  *
  * @param  $column
  * @return int
  */
 public function max($column)
 {
     return (new Decorator())->decorate($this->query->max($column));
 }