Exemplo n.º 1
0
 /**
  * Return guilds
  *
  * @return array
  */
 public function guilds()
 {
     $perPage = Input::get('perPage');
     $page = Input::get('page');
     $transformer = app('Metin2CMS\\Api\\Transformers\\GuildHighScoreTransformer');
     return $transformer->transformPagination($this->highscoreService->guilds($perPage, $page));
 }
Exemplo n.º 2
0
 /**
  * Display the guilds
  *
  * @return mixed
  */
 public function guilds()
 {
     $guilds = $this->highscoreService->guilds(self::GUILDS_PER_PAGE);
     return $this->view('highscore.guilds', compact('guilds'));
 }