Example #1
0
 public function getIndex()
 {
     $p = $this->isPanda;
     $raids = Game::raid($p)->singular()->limit(4)->get();
     $flawless = Game::flawless($p)->singular()->limit(4)->get();
     $tuesday = Game::tuesday($p)->limit(4)->get();
     $pvp = Game::with('pvp')->multiplayer($p)->singular()->limit(5)->get();
     $poe = Game::poe($p)->singular()->limit(4)->get();
     $passages = GameHelper::getMaps(Game::with('pvp', 'players.account.destiny')->passage()->limit(4)->get());
     Hashes::cacheGameHashes($raids, $flawless, $tuesday, $pvp, $poe, $passages);
     return view('destiny.games.index')->with('raids', $raids)->with('flawless', $flawless)->with('tuesday', $tuesday)->with('pvp', $pvp)->with('poe', $poe)->with('passages', $passages)->with('title', 'PandaLove Game Index')->with('description', 'PandaLove games including Raids, PVP, Trials of Osiris, Prison of Elders and much more.');
 }