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