/** * Shows the Index Page * * @param Store $settings * * @return \Illuminate\View\View */ public function index(Store $settings) { // Forum permissions are checked in "getIndexTree" and "getNewest" $forums = $this->forumRepository->getIndexTree(); $topics = $this->topicRepository->getNewest(); $users = $this->userRepository->online($settings->get('wio.minutes', 15), 'name', 'asc', 0); return view('forum.index', compact('forums', 'topics', 'users')); }