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

dreamlist's avatar

Laravel for API

Hello, I'm come accross a requirements whre i must build an API to service a 3rd party company. The purpose of the API is simple, the client will have to be able to validate the presence a string data from database. Look at Santcum but it looks like the design of the api is for SPA's or a logged in user will be able to access the API. Same is true for Laravel "Passport". (correct me if im wrong).

Appreciate your guidance on what laravel package to use to this. Ideally, the client should have a id token and a path.

0 likes
1 reply
jlrdw's avatar
jlrdw
Best Answer
Level 75

Have a look at laravel Passport. But Sanctum should work, read all of the docs.

1 like

Please or to participate in this conversation.