src/ThrottleServiceProvider.php
protected function registerThrottle()
    {
        $this->app->singleton('throttle', function (Container $app) {
            $factory = $app['throttle.factory'];
            $transformer = $app['throttle.transformer'];

            return new Throttle($factory, $transformer);
        });

        $this->app->alias('throttle', Throttle::class);
    }
protected function registerThrottle()
    {
        $this->app->singleton('throttle', function (Container $app) {
            $factory = $app['throttle.factory'];
            $transformer = $app['throttle.transformer'];

            return new Throttle($factory, $transformer);
        });

        $this->app->alias('throttle', Throttle::class);
    }
protected function registerThrottle ( ) { $ this -> app -> singleton ( 'throttle' , function ( Container $ app ) { $ factory = $ app [ 'throttle.factory' ] ; $ transformer = $ app [ 'throttle.transformer' ] ; return new Throttle ( $ factory , $ transformer ) ; } ) ; $ this -> app -> alias ( 'throttle' , Throttle :: class ) ; }
Register the throttle class.

@return void
Register the throttle class .