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

vincent15000's avatar

Laravel 12, Fortify and Sanctum

Hello,

Hmmm ... not the first time I do that ... but first time with Laravel 12.

I get a 419 error when log in with Fortify and Sanctum.

UPDATED I have removed the SESSION_DOMAIN value and now I get a 401 error.

Here is my code and configuration.

Just trying with this code, I get a 419 error.

What am I doing wrong ?

What am I forgetting ?

Can you help me please ?

Thanks ;).

V

0 likes
1 reply
vincent15000's avatar
vincent15000
OP
Best Answer
Level 63

Just solved ... I forgot the port APP_URL=http://localhost:8000.

Please or to participate in this conversation.