Published 5 months ago by AlexNastase
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 )?
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.