public function currentRouteNamed($name) { return $this->current() ? $this->current()->getName() == $name : false; }
/** * Determine if the current route matches a given name. * * @param string $name * @return bool * @static */ public static function currentRouteNamed($name) { return \Illuminate\Routing\Router::currentRouteNamed($name); }