예제 #1
0
 /**
  * Show the catalog (gridded) board view.
  *
  * @param  Board    $board
  * @return Response
  */
 public function getCatalog(Board $board)
 {
     // Load our list of threads and their latest replies.
     return $this->apiResponse($board->getThreadsForCatalog());
 }
예제 #2
0
 /**
  * Show the catalog (gridded) board view.
  *
  * @param  Board  $board
  * @return Response
  */
 public function getCatalog(Board $board)
 {
     // Load our list of threads and their latest replies.
     $posts = $board->getThreadsForCatalog();
     return $this->view(static::VIEW_CATALOG, ['board' => $board, 'posts' => $posts, 'reply_to' => false]);
 }