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

maxgeraci's avatar

Example project with laravel/vue and external laravel passport api

Hi,

I was wondering if anyone knows of an example project that consists of 2 different projects.

  • A laravel passport api including authentication
  • A laravel/vue project that uses the above api for authentication and maybe more

I'm having some trouble trying to find something like this myself. I already have a laravel passport api with authentication but I really have no idea how to implement it into a different project, especially the authentication part. If anyone has any idea how to do this, or maybe even have some examples I would appreciate it a lot.

0 likes
1 reply
Pciranda's avatar

There are a few ways to implement this.

I work as follows.

  1. A repository for Laravel to serve api only.
  2. A repository for Vue for the front end.

in time to build the front end, the deploy will be in the public directory inside the laravel. Then create a single route that will point to the index.html generated by the webpack.

If you want, create 2 repositories (blank) in github or gitlab and I will help you.

Please or to participate in this conversation.