Returns the min value of the collection.

@param string $column The column to get the min value.

@return mixed
195017
public function min(string $column = null)
    {
        if ($this->isNotEmpty()) {
            return min($this->toArray());
        }

        return false;
    }
1071487
public function getValue($range)
    {
        $range = $range == 'min' ? $range : 'max';

        if (is_null($this->{$range})) {
            $this->{$range} = $this->getFirst($range);
        }

        return $this->{$range};
    }
123242
public function getErrors($column = null)
    {
        if (is_null($column)) {
            return $this->errors;
        }

        return isset($this->errors[$column.self::ERROR]) ? $this->errors[$column.self::ERROR] : null;
    }
376307
public function max($column = null)
    {
        $this->prepare();

        if (is_null($column)) {
            $max = max($this->_map);
        } else {
            $max = max(array_column($this->_map, $column));
        }

        return $max;
    }
180286
public function min($colName)
    {
        
        $min = INF;
        foreach ($this->rows as $row) {
            if ($min>$row[$colName]) {
                $min = $row[$colName];
            }
        }
        return $min;
    }
10280
protected function parseColumn($column) {
		if ($column instanceof Column) {
			$type = $column->getType();
			return empty($type) ? $column->getName() : $column->getName() . ':' . $type;
		}
		
		return $column;
	}
343317
public function whereIsNull(string $column)
    {
        $instance = $this->whereStrategyInstance();

        $instance->whereStrategy()->whereIsNull($column);

        return $instance;
    }
963949
public function getColumnDetail($column)
    {
        $columns = $this->getColumnDetails();

        return isset($columns[$column]) ? $columns[$column] : null;
    }
172112
public function orHavingIsNull(string $column)
    {
        $instance = $this->havingStrategyInstance();

        $instance->havingStrategy()->orHavingIsNull($column);

        return $instance;
    }
375752
public function values($column = 0)
    {
        if (is_int($column)) {
            $column = $this->rows ? array_keys($this->rows[0])[$column] : '';
        }

        return array_map(function ($row) use ($column) {
            return $row[$column];
        }, $this->rows);
    }
654823
public function getLastInsertedId($column = null)
    {
        if (is_string($column)) {
            return $this->getConnection()->lastInsertId($column);
        }

        return $this->getConnection()->lastInsertId();
    }
205380
public function getHighestRow($column = null)
    {
        if ($column == null) {
            return $this->cachedHighestRow;
        }
        return $this->getHighestDataRow($column);
    }
468767
public function col($column)
    {
        $values = [];
        foreach ($this->_entities as $entity) {
            if ($entity->hasAttribute($column)) $values[] = $entity->$column;
        }
        return $values;
    }
1346882
public function groupBy(string $column)
    {
        $instance = $this->groupByStrategyInstance();

        $instance->groupByStrategy()->groupBy($column);

        return $instance;
    }
274906
public function value( $column )
	{
		$result = $this->first( [$column] );

		return $result ? $result->{$column} : null;
	}
894496
public function value($column = 0)
    {
        if (is_int($column)) {
            return $this->statement->fetchColumn($column);
        }

        return $this->row()[$column];
    }
748698
public function min(string $column, string $alias = null)
    {
        $this->columnRaw($this->dialect()->min($column, $alias));

        return $this;
    }