Laravel Passport is an extra "Module" of Laravel so you don't need two different webapps. I suggest to read Laravels documentation about this: https://laravel.com/docs/5.5/passport
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.
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.
Please or to participate in this conversation.