コード例 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $groups = Sentry::getGroups();
     $outlets = SalesOutlets::dropdownList();
     $roles = ['' => 'Select Role'] + User::$roles;
     $user = User::with('groups')->find($id);
     return View::make('users.edit', compact('groups', 'outlets', 'roles', 'user'));
 }