original_string: public function route($name, $parameters = [])
      {
          $route = router()->route($name);
          if (is_null($route)) {
              throw new \Exception("Route name [$name] not found");
          }
  
          $route_url = $route->url($parameters);
  
          return $this->to($route_url);
      }
code: public function route($name, $parameters = [])
      {
          $route = router()->route($name);
          if (is_null($route)) {
              throw new \Exception("Route name [$name] not found");
          }
  
          $route_url = $route->url($parameters);
  
          return $this->to($route_url);
      }
code_tokens: public function route ( $ name , $ parameters = [ ] ) { $ route = router ( ) -> route ( $ name ) ; if ( is_null ( $ route ) ) { throw new \ Exception ( "Route name [$name] not found" ) ; } $ route_url = $ route -> url ( $ parameters ) ; return $ this -> to ( $ route_url ) ; }
docstring: Generate an absolute URL to the route.
  
  @param $name
  @param array $parameters
  @return string
  @throws \Exception
docstring_tokens: Generate an absolute URL to the route .