Example #1
0
 public function getPassage($passageId, $gameId = null)
 {
     $games = Game::with('players.gameChar', 'players.account.destiny', 'pvp')->ofPassage($passageId)->get();
     if ($games->isEmpty()) {
         \App::abort(404);
     }
     Hashes::cacheTuesdayHashes($games);
     $combined = GameHelper::buildCombinedStats($games);
     $passageCombined = GameHelper::buildQuickPassageStats($games);
     return view('destiny.games.passage')->with('passageId', intval($passageId))->with('revives', $combined['stats']['revives'])->with('games', $games)->with('combined', $combined)->with('passage', $passageCombined)->with('title', 'PandaLove: Trials Of Osiris #' . $passageId)->with('description', 'PandaLove: Trials Of Osiris #' . $passageId)->with('showAll', true)->with('gameId', GameHelper::gameIdExists($games, $gameId));
 }