/** * Show the form for editing the specified resource. * * @param User $user * @return Response * @internal param int $id */ public function edit(User $user) { $roles = $this->role->lists('name', 'id'); return view('admin.users.edit', compact('user', 'roles')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function getIndex() { $roles = $this->roleRepository->lists($this->pageSize); return view('weyi.role.index', compact('roles')); }