Ejemplo n.º 1
0
 public function calculatePerTime($filters = [])
 {
     $this->queryFields = [\DB::raw('COUNT(*) AS `count`')];
     $query = $this->applyFilters(\TestModel::query(), $filters);
     $query = $this->applyTimeGroup($query);
     $results = $query->get($this->queryFields);
     $results = $this->fillDateGaps($results, $filters);
     return $this->dataTable;
 }