/** * Display a listing of the resource. * * @return Response */ public function index() { $sortBy = \Request::get('sortBy'); $direction = \Request::get('direction', 'asc'); $showLeft = \Request::get('showLeft', 0); $users = $this->userRepository->getPaginated(compact('sortBy', 'direction', 'showLeft')); return \View::make('account.index')->withUsers($users); }