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

MaximovicDj's avatar

Laravel sanctum authentication

Hello everyone, I've been working and learning Laravel for a while now, I've been based on the Laravel API and I have some doubts about some of the issues. For example, I'm using Laravel Sanctum and when I do authentication, what is the best practice, to do login/register and other pages from scratch or to use one of the packages, I see that Laravel Breeze can be used with Sanctum, so I'm interested in what is the best practice and what is the best to use and what is the best?

0 likes
2 replies
martinbean's avatar

@maximovicdj Why would you do anything from scratch when Laravel literally gives you over half a dozen first-party solutions?

There’s Fortify, Breeze, Jetstream, the starter kits… You absolutely do not need to do anything authentication-related from scratch.

1 like

Please or to participate in this conversation.