public function get_index() { // TODO: Get list of forums and topics with new posts since last visit & get all topics that were marked as read // Fetch the categories and forums $categories = Category::allForGroup(User::current()->group_id); $view = \View::make('fluxbb::index'); $view['categories'] = $categories; return $view; }
protected function handleRequest(Request $request) { $group_id = User::current()->group_id; $categories = Category::allForGroup($group_id); $this->data['categories'] = $categories; }