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

Andrea Gernone's avatar

Angular 11 + Laravel 8 + Fortify + Sanctum

Hi guys, I'm building a project with angular as Client and Laravel as Server. I tried following the docs to setup a simple Login with Sanctum but many problems arise when I try to login ( Session store not set on request, Csrf Token mismatch, ecc ecc ) even though I really followed carefully every step. So I tried to look for a simple tutorial Angular + Sanctum but I couldn't find one (if not for an old video on youtube, not really using best practices).

My question is: how is it possible that there are no good Medium articles, blog posts, videos or anything regarding this apparently simple thing? Is it not a good choice to use Angular and Sanctum together?

I wanted to avoid to use Passport, but should I use that instead of Fortify + Sanctum?

Thank you in advance for your suggestions.

0 likes
0 replies

Please or to participate in this conversation.