src/Repositories/Repository.php
public function avg($field)
    {
    	if (! $this->builder) {
    		$this->builder = $this->model;
    	}
    	 
    	return $this->builder->avg($field);
    }
public function avg($field)
    {
    	if (! $this->builder) {
    		$this->builder = $this->model;
    	}
    	 
    	return $this->builder->avg($field);
    }
Average field

@param string $field
@return float