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

fbmfbm's avatar

Jetstream automatic silent login user

Hi All, in laravel 8 project with jetstream team and Cashier for Strip management, i would like to auto login user on first command. Laravel user is created with shopping email. How to auto connecte it in front without to ask password creation ? I know that the Auth::user() helper can force login the user on back but how to update the front in jetstream ? Do i need to create a session and update it after checkout ? thank's for your help !!

0 likes
2 replies
christian-qode's avatar

@fbmfbm First, you have to create the user model when the purchase is made. To log in the user automatically, simply do:

Auth::login($user);
fbmfbm's avatar

Hi Christian, Thank's for your answer. Yes i know this helper to login user, but i my story i would like to login user manually in jetstream front page (without page reload). ..

Please or to participate in this conversation.