/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(EditUserRequest $request, $id)
 {
     $user = User::findOrFail($id);
     $user->fill($request->all());
     $user->save();
     return redirect()->back();
 }
 /**
  * Update the specified resource in storage.
  *
  * @param EditUserRequest $request
  * @param  int $id
  * @return Response
  */
 public function update(EditUserRequest $request, $id)
 {
     $this->user->fill($request->all());
     $this->user->save();
     return redirect()->back();
 }
Example #3
0
 /**
  * Update the specified resource in storage.
  *
  * @param  Request $request
  * @param  int $id
  * @return Response
  */
 public function update(EditUserRequest $request, $id)
 {
     $user = User::findOrFail($id);
     $user->fill($request->all());
     $user->save();
     return redirect()->route('admin.users.index');
 }