Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sasafister's avatar

Store session for reseting password

Laravel doesn't do that out of the box? When I put email and send request for reseting password, it would be nice to store a session with some key, so I can display it on the screen. session()->flash() would be nice. For now I hardcoded that in

public function sendResetLinkEmail(Request $request)

but obvious that's not good approach...Any ideas on that?

0 likes
3 replies
sasafister's avatar

@MARTINBEAN - When someone want reset password, there is a view for that (php artisan auth). And after someone puts their email address, and click send, I would love to show them message that email is sent.

AFAIK, there is not session for that by default?

martinbean's avatar

@sasafister I’m still not following, I’m afraid. When someone requests a password reset email in a Laravel application, they are directed to a page with a flash message saying an email’s been sent.

Please or to participate in this conversation.