Open file: routes/api.php
Find this code:
Change it to this:
Full Code:
Route::post('/send-otp', [
'uses' => 'SmsController@sendOtp',
])->middleware('throttle:3,10');
This code limits your OTP send requests to 3 per 10 mins from single IP.
Change the 3,10 to anything that you need for your business.
====
Make sure you are using the latest version of Foodomaa.