I think that it's the rate limiter name defined in the RouteServiceProvider.php file.
You can name this rate limiter as you want : api, products, ...
RateLimiter::for('api', ...
The rate limiters are defined in the boot() method in the route service provider.
public function boot(): void
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
});
$this->routes(function () {
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));
Route::middleware('web')
->group(base_path('routes/web.php'));
});
}
So it could be like this.
RateLimiter::for('my_super_rate_limiter', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
});
And then in the Kernel.php file it would look like this.
\Illuminate\Routing\Middleware\ThrottleRequests::class . ':my_super_rate_limiter',