I've been struggling to figure out how to configure Laravel's Auth with Vue. I would like to setup a basic "API" where Vue can make calls to the API, basically the same configuration as Taylor on the Echo demonstration (https://github.com/taylorotwell/echo-demo/). Its hard to reverse engineer the code since I don't have access to the Spark section of the code.
How would you make sure a user is authenticated on the normal web based access, but also through the vue calls to the API?
Basically use the auth:web for my normal views and then auth:api for vue. Do I need to generate a API Token each time a user logs in and remove it after logging out? How would I attach my api token to Vue?
Thanks . mrunknown