/** * Show the browse popular tricks page. * * @return \Response */ public function getBrowsePopular() { $tricks = $this->tricks->findMostPopular(); $type = \Lang::get('browse.popular'); $pageTitle = \Lang::get('browse.browsing_most_popular_tricks'); $this->view('browse.index', compact('tricks', 'type', 'pageTitle')); }
/** * Show the browse popular tricks page. * * @return \Response */ public function getBrowsePopular() { $tricks = $this->tricks->findMostPopular(); $type = 'Popular'; $pageTitle = 'Browsing Most Popular Laravel Tricks'; $this->view('browse.index', compact('tricks', 'type', 'pageTitle')); }