just pull in illuminate/routing and use https://github.com/illuminate/routing/blob/master/Middleware/ThrottleRequests.php
or just copy and paste the file into your app.
then just register this middleware in your bootstrap file
I'd like to use Laravel 5.2's ThrottleRequests middleware in Lumen. Unless I'm missing something, it does not appear that Lumen provides any throttling which seems backwards, imho, since Lumen's Special Purpose is to enable the development of APIs which need throttling.
Sanity check: am I missing something? Does Lumen 5.2 have throttling and I'm just dense?
Assuming not, is there a way to easily install the Illuminate ThrottleRequests class as middleware in Lumen?
Is there a third-party alternative that provides elegant and lightweight throttling? Or am I better off waiting for ThrottleRequests to appear in Lumen 5.3?
Many thanks, Steve
Please or to participate in this conversation.