示例#1
0
 /**
  * Update the specified resource in storage.
  *
  * @param int               $id
  * @param UpdateUserRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateUserRequest $request)
 {
     $this->user->updatewithRoles($request->all(), $request->roles, $id);
     flash(trans('core::messages.resource.resource updated', ['name' => trans('user::users.title.user')]));
     return redirect()->route('backend::user.user.index');
 }
示例#2
0
 /**
  * Update the specified resource in storage.
  *
  * @param int               $id
  * @param UpdateUserRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateUserRequest $request)
 {
     $this->user->updateAndSyncRoles($id, $request->all(), $request->roles);
     return $this->successUpdated();
 }