Laravel Passport is an OAuth server implementation, used mostly for other applications wanting your data through your api but requiring authorization to access it.
First, you need some general understanding of OAuth, 1 hour of few texts or youTube.
Now: If you need application to application connection, you look at Authorization Code Grant Type, but since you mentioned user login, I think you are more interested in Password Grant Type! or Consuming Your API With JavaScript! (if your consuming app is on the same URL, eg. 'Same-origin'.
This is just to get you started. Write if you get stuck somewhere.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community