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

AlexNastase's avatar

Vue Laravel and Laravel Passport

Hi guys,

I am trying to undestad how to create a SPA (has users, posts, comments etc.) with Vue 2 - Laravel 5.5 and Passport. Do i need two diferent web apps. One client ( Vue and Laravel ) and one server ( Laravel Passport )?

Thank you.

0 likes
4 replies
ZetecVan's avatar
ZetecVan
Best Answer
Level 9

I have started using Passport on my latest project.

I have created one Laravel App. I am creating API endpoints (with the routes in the API routes file, in the Auth & API middleware group).

These are consumed by the VueJS front end. It allows me to be able to determine the signed in user without having to create tokens that would be used if I was using an external client to access the api. (details at the end of the passport install page: https://laravel.com/docs/5.5/passport)

So the answer is, no you don't need to create two different web apps.

1 like
AlexNastase's avatar

Thank you andreasbakir and ZetecVan. I will double check the documentation.

Please or to participate in this conversation.