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

tenzan's avatar

Laravel & Vue SPA and Sanctum

Hello,

Just wanted to make sure if my understanding is correct?

  1. To make a VueJS SPA, Laravel should be used only as an API backend
  2. With Sanctum it will be easier to implement authentication in VueJS
0 likes
2 replies
martinbean's avatar

@tenzan I don’t really know what more you want us to add? The introduction for Sanctum in the docs answers your question:

Laravel Sanctum provides a featherweight authentication system for SPAs

tenzan's avatar

Well, you didn't answer my 1st question... I admit, my 2nd question was asked in not a good way.

Please or to participate in this conversation.