The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)

 
Deleted comment

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:

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.