id)->withOrder($request->order)->with('user', 'category')->paginate(); return view('topics.index', compact('topics', 'category')); } }