Esempio n. 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = User::with('groups')->findOrFail($id);
     $userGroups = $user->groups->lists('id');
     $groups = Group::get()->lists('name', 'id');
     return View::make('sysguard::resource.user.edit', compact('user', 'groups', 'userGroups'));
 }