/**
  * Register the API rate limiter.
  *
  * @return void
  */
 protected function registerRateLimiter()
 {
     $this->app->bindShared('api.limiter', function ($app) {
         $throttles = $this->prepareConfigInstances($app['config']['api::throttling']);
         $limiter = new RateLimiter($app, $app['cache'], $throttles);
         $limiter->setRateLimiter(function ($container, $request) {
             return $request->getClientIp();
         });
         return $limiter;
     });
 }