Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 /**
  * 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'));
 }