Open ahmadbadpey opened 6 years ago
Have you published the package?
Have you tried to define in different structure? Try this from documentation, then you should know if the throttle is set up correctly at least.
$api->version('v1', ['middleware' => 'api.throttle', 'limit' => 3, 'expires' => 20], function ($api) {
$api->get('users', function () {
return User::all();
});
});
According to this guidance ,I added a throttle functionality to a specific route in my laravel project like this :
As you can see I added a throttle , limit of 3 with an expiration time of 20 minutes for this specific route.
But even I request that rout more than 3 times, no things occurred.
I do not know what is problem or is need any more step or not?