original_string: protected function registerRouteMiddleware()
      {
          // register route middleware.
          foreach ($this->routeMiddleware as $key => $middleware) {
              app('router')->aliasMiddleware($key, $middleware);
          }
  
          // register middleware group.
          foreach ($this->middlewareGroups as $key => $middleware) {
              app('router')->middlewareGroup($key, $middleware);
          }
      }
code: protected function registerRouteMiddleware()
      {
          // register route middleware.
          foreach ($this->routeMiddleware as $key => $middleware) {
              app('router')->aliasMiddleware($key, $middleware);
          }
  
          // register middleware group.
          foreach ($this->middlewareGroups as $key => $middleware) {
              app('router')->middlewareGroup($key, $middleware);
          }
      }
code_tokens: protected function registerRouteMiddleware ( ) { // register route middleware. foreach ( $ this -> routeMiddleware as $ key => $ middleware ) { app ( 'router' ) -> aliasMiddleware ( $ key , $ middleware ) ; } // register middleware group. foreach ( $ this -> middlewareGroups as $ key => $ middleware ) { app ( 'router' ) -> middlewareGroup ( $ key , $ middleware ) ; } }
docstring: Register the route middleware.
  
  @return void
docstring_tokens: Register the route middleware .