/** * Display a listing of the resource. * * @return Response */ public function index() { $users = User::all()->sortByDesc('updated_at'); $total_users = count($users); $total_replies = \App\Reply::all()->count(); return view('users.index', compact('users', 'total_users', 'total_replies')); }