/**
  * Gets the total number of players in the database
  * @return integer
  */
 public function getPlayerCount()
 {
     $count = Cache::remember('player.count', 60, function () {
         return Player::count();
     });
     return intval($count);
 }
Beispiel #2
0
 /**
  * Gets the total number of players in the database
  *
  * @return integer
  */
 public function getPlayerCount()
 {
     $count = Player::count('PlayerID');
     return intval($count);
 }