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

priyalaks's avatar

Laravel API -Passport or any Recommendation

I am going to write API in Laravel for an Ecommerce Platform . What would be your recommendation if I need to have security like API Keys . Previously I have worked with Passport - and it works like charm but I am open to explore others as well .

0 likes
3 replies
martinbean's avatar

@priyalaks If Passport suits your needs then carry on using it. It’s an implementation of OAuth, which is an actual authorisation standard, unlike Sanctum.

priyalaks's avatar

@martinbean I am going to build a backend API which will validate the input and store in db . This is more of the backend for a application . I guess Passport will server my purpose ..

Please or to participate in this conversation.