/**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Sentinel::findUserById($id);
     $userRoles = $user->getRoles()->lists('name', 'id')->toArray();
     $roles = Role::lists('name', 'id');
     return view('backend.user.edit', compact('user', 'roles', 'userRoles'))->with('active', 'user');
 }
Beispiel #2
0
 /**
  * @param $id
  *
  * @return View
  */
 public function confirmDestroy($id)
 {
     $role = Role::find($id);
     return view('backend.role.confirm-destroy', compact('role'));
 }