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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners