public function currentRouteNamed($name)
    {
        if (! is_null($route = $this->current())) {
            return ($route->getName() == $name);
        }

        return false;
    }
public function currentRouteNamed($name)
    {
        if (! is_null($route = $this->current())) {
            return ($route->getName() == $name);
        }

        return false;
    }
public function currentRouteNamed ( $ name ) { if ( ! is_null ( $ route = $ this -> current ( ) ) ) { return ( $ route -> getName ( ) == $ name ) ; } return false ; }
Determine if the current route matches a given name.

@param  string  $name
@return bool
Determine if the current route matches a given name .