/** * 论坛首页 * * @return Response * @author yangyifan <*****@*****.**> */ public function getIndex(Request $request) { $cat_id = $request->get('cat_id', 1); return view('home.forum.index', ['all_forum' => ForumModel::getAllForums($cat_id), 'all_hot_category' => ForumModel::getIndexCat($cat_id), 'cat_id' => $cat_id, 'title' => '论坛', 'keywords' => '论坛', 'description' => '论坛']); }