/** * Updates a user record. * * @param int $id * @return \Apricot\Foundation\Response */ public function update(int $id) { $inputs = Input::all(); try { $this->user->update($id, $inputs); } catch(ApplicationException $e) { throw $e; } catch(\Exception $e) { throw new ApplicationException(__('messages.error.db.update')); } // Redirects to the user edit page. return redirect(route("user/{$id}/edit")); }