/** * 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'); }
/** * 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(); }