Exemplo n.º 1
0
Arquivo: Api.php Projeto: rob1121/qdn
 public function stationPie()
 {
     return Info::getCountPerStation()->map(function ($key) {
         return $this->getArrayOfDataPerStationForPieChart($key, $this);
     });
 }
Exemplo n.º 2
0
Arquivo: Info.php Projeto: rob1121/qdn
 public static function getTopContributorByStation()
 {
     return Info::getCountPerStation()->sortByDesc('count')->first()->station;
 }