/** * 用户管理列表 * * @access public */ public function index(User $userModel, Group $groupModel) { Session::flashInput(['http_referer' => Request::fullUrl()]); $userList = $userModel->getAllUser(['group_id' => Request::input('gid')]); $page = $userList->setPath('')->appends(Request::all())->render(); $groupList = $groupModel->getAllGroup(); return view('admin.user.index', compact('userList', 'groupList', 'page')); }