You have core Laravel app and...?
Backend: Angular app (SPA) that consumes the API
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi Guys,
I´m working on an application with the following architecture:
As the "sensitive" operations for administrative purposes (like listing or deleting users or deleting resources) also have to be exposed on the API so that it can be consumed by the backend UI I´m wondering if there is a "best practice" pattern for structuring the API:
On one hand this will lead to duplicate code and a higher complexity. On the other hand it allows me to add additional security layer like restricting access to certain IP addresses for the path /api/be/v1 (which might be more complex in a "combined" API).
What is you experience? And are there any "industrial standard" patterns I can use? (haven´t found one on the web till now).
Looking forward to see your experiences and suggestions, Mike
Please or to participate in this conversation.