samedi 23 novembre 2019

Laravel - Restrict only upto 2 API calls

I am connecting my app to an API which allows only 2 simultaneous API calls.

How can I restrict this from my app? If more than 2 users try to call this API through my app, I want to restrict this.

I can do this by setting a flag in table or so, but what I would to know is, Is there a smarter laravel way of doing this?

Laravel verion 5.4.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire