Hi. I have a contact form, that is create with vue and loaded in laravel. Now I want to send the form and I need to know if my next steps are right and what would other people say.
To send the form I could use a web route. I checked vue and when i changed the X-XSRF-TOKEN in the request, it is not working anymore. So it seems I could use web routes and they are secured by laravel/vue as they are. I think X-XSRF-TOKEN is the csrf I normally use in laravel blade.
Later there will be maybe a SPA and also an option for Oauth2 to get Tokens for your app and also send mails or maybe other endpoints that will be shared.
So will it be better to start with passport for all? And then get one token for my laravel application and later I can create extra tokens or user can create their own tokens for external apps?
I just need to know if I understand everything right. Then I would switch now to passport. Or would you go with two ways? Have web routes for vue endpoints and also api routes?