/** * Show the browse most commented tricks page. * * @return \Response */ public function getBrowseComments() { $tricks = $this->tricks->findMostCommented(); $type = \Lang::get('browse.most_commented'); $pageTitle = \Lang::get('browse.browsing_most_commented_tricks'); $this->view('browse.index', compact('tricks', 'type', 'pageTitle')); }
/** * Show the browse most commented tricks page. * * @return \Response */ public function getBrowseComments() { $tricks = $this->tricks->findMostCommented(); $type = 'Most commented'; $pageTitle = 'Browsing Most Commented Laravel Tricks'; $this->view('browse.index', compact('tricks', 'type', 'pageTitle')); }