id)->withOrder($request->order)->with('user', 'category')->paginate(); $links = $link->getAllCached(); $active_users = $user->getActiveUsers(); return view('topics.index', compact('topics', 'category', 'active_users', 'links')); } }