public function getAll($perPage = 20) { if ($perPage !== false) { return Game::paginate($perPage); } return Game::all(); }