/** * Show the article. * * @param Article $article * @return Response */ public function show(Article $article) { Event::fire(new ArticleWasViewed($article)); $fbLikeCounter = $this->fbLikes->facebookLike(); $totalMembers = $this->ipb->getTotalMembers(); return view('application.article.show', compact('article', 'fbLikeCounter', 'totalMembers')); }
/** * Show the category articles * * @param Category $category * @return Response */ public function index(Category $category) { $fbLikeCounter = $this->fbLikes->facebookLike(); $totalMembers = $this->ipb->getTotalMembers(); $articles = $category->articles()->published()->orderBy('published_at', 'desc')->paginate(5); return view('application.category.index', compact('articles', 'category', 'fbLikeCounter', 'totalMembers')); }
/** * Collect all needed data for first page * @return Response */ public function index() { Debugbar::startMeasure('render', 'Time for rendering'); $latestTalk = $this->getLatestTalk(); $hotTopics = $this->getHotTopics(); $latestTopics = $this->getLatestTopics(); $latestNews = $this->getLatestForum(4, 3); $columnLatests = $this->getLatestForum(22, 3); $lastGalleryImages = $this->getGelllery(); $totalMembers = $this->ipb->getTotalMembers(); $fbLikeCounter = $this->facebook->facebookLike(); $lastMatch = $this->LastMatch(); $standing = $this->LeagueTable(); $fbFeeds = $this->facebook->newsFeed(); Debugbar::stopMeasure('render'); return view('application.home.default', compact('columnLatests', 'lastGalleryImages', 'latestTopics', 'latestTalk', 'latestNews', 'hotTopics', 'totalMembers', 'fbLikeCounter', 'lastMatch', 'standing', 'fbFeeds')); }
/** * Show the page * * @param Page $page * @return Response */ public function index(Page $page) { $fbLikeCounter = $this->fbLikes->facebookLike(); $totalMembers = $this->ipb->getTotalMembers(); return view('application.page.index', compact('page', 'fbLikeCounter', 'totalMembers')); }