Example #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id, UpdateUser $request)
 {
     $user = $this->user->update($request->all());
     $request->ajax();
     return redirect('user/' . $user->id);
 }
Example #2
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id, UpdateUser $request)
 {
     $user = $this->user->update($request->all());
     $request->ajax();
     return redirect('admin/user/' . $user->id)->with(array('status' => 'success', 'message' => 'Utilisateur mis à jour'));
 }