legacy = $legacy; } public function index() { $data = $this->legacy->forumIndex(); return view('legacy.forum.index', $data); } public function topic(Request $request, $topic_id) { $data = $this->legacy->forumTopic((int) $topic_id, (int) $request->query('page', 1)); if (! $data) { return view('legacy.placeholder'); } if (isset($data['type']) && $data['type'] === 'subtopics') { return view('legacy.forum.topic', $data); } return view('legacy.forum.posts', $data); } }