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

mil_'s avatar
Level 1

Secure Api endpoints

Hi,

What is the best practice to secure api endpoints from users that shouldnt have access, right now i am checking if user id have access to resources with sql query in controller is there better practice to do that?

0 likes
2 replies

Please or to participate in this conversation.