/** * Process signup form * POST /signup */ public function postSignup() { if ($this->userForm->create(Input::all())) { return Redirect::route('auth.getLogin')->with('message', 'Successfully registered. Please check your email and activate your account.')->with('messageType', "success"); } return Redirect::route('auth.getSignup')->withInput()->withErrors($this->userForm->errors()); }
/** * Updates user settings * @param $slug * @return mixed */ public function putSettings($slug) { $user = Auth::user(); $result = $this->userForm->update($user, Input::all()); if ($result) { return Redirect::route('user.getSettings', $slug)->with('message', 'Successfully updated your settings.')->with('messageType', "success"); } else { return Redirect::route('user.getSettings', $slug)->withInput()->withErrors($this->userForm->errors()); } }