EIther will work, but laracasts is now an SPA. Listen to the podcasts where Jeffrey talks about that:
The Laracasts Snippet #134
Edit: Sanctum here might be a good choice since you have SPA's: https://laravel.com/docs/8.x/sanctum#spa-authentication
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi! I'm building a site with Laravel as the main site. I have Flarum (SPA forum) and GetCandy(SPA)/Aimeos e-commerce API on my subdomains. I want to authenticate all my APIs using a centralized user base on my main site.
Should I use Passport or Sanctum to achieve this? Have anyone did it before?
Please or to participate in this conversation.