You can set the route the user is redirected to with this property on the VerificationController.
protected $redirectTo = '/dashboard';
So you could setup your thanks view.
https://laravel.com/docs/5.7/verification#after-verifying-emails
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello guys :)
i wish to display message when user will click on link in verification email,
After click, redirect on website and show message "Thanks" :)
You can copy this function from the trait to the verification controller and then change it how you like;
/**
* Mark the authenticated user's email address as verified.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function verify(Request $request)
{
if ($request->route('id') != $request->user()->getKey()) {
throw new AuthorizationException;
}
if ($request->user()->markEmailAsVerified()) {
event(new Verified($request->user()));
}
return redirect($this->redirectPath())->with('verified', true);
}
for instance, before the return;
Session::flash('success', 'Your email has been verified');
return redirect($this->redirectPath())->with('verified', true);
and then also change the last line to redirect wherever you want.
Please or to participate in this conversation.