Category: Laravel, PHP, api

The goal of the article is to create an API gateway, that doesn’t keep the state of the user in any storage, but authenticates using OTP based authentication. This way, the service calls behind the gateway are made sure that it is done by the authenticated users. If your gateway proxy is just doing the microservice calls to other services and assuming you have a user service, then you don’t need to keep any state in your gateway.

So, now in your controller after validating OTP, you can call like below.

You can do that in that method.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners