code: public function avg($field)
      {
      	if (! $this->builder) {
      		$this->builder = $this->model;
      	}
      	 
      	return $this->builder->avg($field);
      }
docs: Average field
  
  @param string $field
  @return float