I'd do a JS implementation to reduce the amount of work and complexity of your project. Alternatively you could also move your Lumen code into Laravel.
Direct Access to my API
Hello Everyone,
I built a backend API system (using lumen) to be used for my iOS and Android App.
Now I want to build also a web portal that will do similar function of the iOS/Android Apps, I will be using Laravel for the web portal and my question is for the API access in my web portal, should I call these API using javascript (directly query my backend API from javascript) or should I create a wrapper in Laravel (function) that will just receive user requests from the portal and call the APIs?
I know both are possible but I want your feedback regarding the pros and cons of each approach.
Thanks
Please or to participate in this conversation.