Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * Gets the total number of players in the database
  *
  * @return integer
  */
 public function getPlayerCount()
 {
     $count = Player::count('PlayerID');
     return intval($count);
 }