original_string: public function named(...$patterns)
      {
          if (is_null($routeName = $this->getName())) {
              return false;
          }
  
          foreach ($patterns as $pattern) {
              if (Str::is($pattern, $routeName)) {
                  return true;
              }
          }
  
          return false;
      }
code: public function named(...$patterns)
      {
          if (is_null($routeName = $this->getName())) {
              return false;
          }
  
          foreach ($patterns as $pattern) {
              if (Str::is($pattern, $routeName)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function named ( ... $ patterns ) { if ( is_null ( $ routeName = $ this -> getName ( ) ) ) { return false ; } foreach ( $ patterns as $ pattern ) { if ( Str :: is ( $ pattern , $ routeName ) ) { return true ; } } return false ; }
docstring: Determine whether the route's name matches the given patterns.
  
  @param  mixed  ...$patterns
  @return bool
docstring_tokens: Determine whether the route s name matches the given patterns .