userRepo = $userRepo; } /** * @param Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index(Request $request) { return view('users.index', [ 'country' => new \League\ISO3166\ISO3166(), 'users' => $this->userRepo->orderBy('name', 'desc')->paginate(), ]); } }