/** * 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()); }
/** * 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]); }