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;
    }
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;
    }
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 ; }
Determine whether the route's name matches the given patterns.

@param  mixed  ...$patterns
@return bool
Determine whether the route s name matches the given patterns .