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

hilmi's avatar
Level 1

How to Create 2FA in Laravel Sanctum?

Good afternoon. How to make 2FA in laravel sanctum ? So, I want to send an OTP to every user who register and log in to the system. I'm still confused about the flow, maybe someone has experience making it, please explain. thank you

0 likes
4 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

If an SPA you could use Laravel Fortify.

1 like

Please or to participate in this conversation.