Have you looked at passport yet? https://laravel.com/docs/5.6/passport
It does a lot of the heavy lifting you'll be wanting, most likely.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am building APIs for a project I am working on. Now these APIs are going to be used by third-parties. And the users are going to use these third-party apps to access their contents which are stored on our servers. To give users access to their accounts (contents) I am thinking of implementing oAuth 2.0.
Now my question is, I also need to restrict access to these APIs. Only a handful of third-parties should be able to use it. I also need to know which calls are coming from which third-parties.
It would be really nice if you guys could guide me toward a solution.
Please or to participate in this conversation.