/** * Setup the layout used by the controller. * * @return void */ protected function setupLayout() { if (!is_null($this->layout)) { $this->layout = View::make($this->layout); } View::share('currentUser', Auth::user()); View::share('siteStat', App::make('Phphub\\Stat\\Stat')->getSiteStat()); View::share('siteTip', Tip::getRandTip()); }
/** * Setup the layout used by the controller. * * @return void */ protected function setupLayout() { if (!is_null($this->layout)) { $this->layout = View::make($this->layout); } View::share('currentUser', Auth::user()); View::share('siteStat', App::make('Phphub\\Stat\\Stat')->getSiteStat()); View::share('siteTip', Tip::getRandTip()); View::share('g_sideInfos', Topic::getSideInfos(5)); View::share('links', Link::remember(1440)->get()); }