PHP-058 / Intermediate
Resource exhaustion through APIs without rate limits (DoS)
Why is this a problem?
Unlimited requests exhaust database, email and external API budgets and availability.
How to fix it
php
Route::post('/sms/send', SmsCtrl::class)->middleware('throttle:10,1');