Dingo\Api\Provider\HttpServiceProvider::registerRateLimiting PHP Method

registerRateLimiting() protected method

Register the rate limiting.
protected registerRateLimiting ( ) : void
return void
    protected function registerRateLimiting()
    {
        $this->app->singleton('api.limiting', function ($app) {
            return new RateLimitHandler($app, $app['cache'], $this->config('throttling'));
        });
    }