Get 2024 Templates Mega Bundle!19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets
Get for 99$

Laravel User registration pops an error message instead of redirecting to verify email


User registration pops an error message instead of redirecting to verify email.

1. I click sign up
2. error message appears
3. I click ok
4. I refresh the page
5. Verify Email page appears

Meanwhile I receive the email "Verify Email Address".

So I thing the sign up page, when succeed is not automatically redirecting to verify email page.

How to solve this? Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)


Explore OneSkin's hyaluronic acid serum, a skincare essential in Pakistan for hydrated, plump skin. Harness the power of hyaluronic acid with our effective formula crafted for all skin types. Trust OneSkin for quality skincare solutions.



It's great that you were able to solve the issue! Your solution seems to have addressed the problem.
If you have any more questions or run into further issues, feel free to ask for assistance.



Could you kindly share a screenshot of the issue you're encountering? Additionally, please check the console log for any JavaScript errors.

You can use imgbb.com to send the screenshot.

Thanks



Please see screenshot: https://ibb.co/sFvXQxj

FYI, meanwhile you see the message, the verification email was correctly sent.
FYI, When you click OK, it wont refresh the page so it goes to verify email page.
FYI, When you F5 to refresh the page, it goes to verify email page.

How to check the console log?



Solved already.

Had to replace:


return redirect(RouteServiceProvider::HOME);


to


return $user;


in RegisteredUserController.php


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(