src/DevMarketer/EasyNav/EasyNav.php
public function hasSegment($slugs, $segments = 1, $active = NULL)
  {
		$this->setActive($active);
    $segments = (!is_array($segments) ? [$segments] : $segments);
    $slugs = (!is_array($slugs) ? [$slugs] : $slugs);
		foreach ($slugs as $slug) {
      foreach ($segments as $segment) {
        if ($this->request->segment($segment) == $slug) return $this->active;
      }
		}
	  return '';
  }
public function hasSegment($slugs, $segments = 1, $active = NULL)
  {
		$this->setActive($active);
    $segments = (!is_array($segments) ? [$segments] : $segments);
    $slugs = (!is_array($slugs) ? [$slugs] : $slugs);
		foreach ($slugs as $slug) {
      foreach ($segments as $segment) {
        if ($this->request->segment($segment) == $slug) return $this->active;
      }
		}
	  return '';
  }
public function hasSegment ( $ slugs , $ segments = 1 , $ active = NULL ) { $ this -> setActive ( $ active ) ; $ segments = ( ! is_array ( $ segments ) ? [ $ segments ] : $ segments ) ; $ slugs = ( ! is_array ( $ slugs ) ? [ $ slugs ] : $ slugs ) ; foreach ( $ slugs as $ slug ) { foreach ( $ segments as $ segment ) { if ( $ this -> request -> segment ( $ segment ) == $ slug ) return $ this -> active ; } } return '' ; }
returns the active class if the defined segment exists
in the current request URI

@param		string|array 	$slugs
@param		int|array			$segments
@param		string|NULL		$active
@return	string
returns the active class if the defined segment exists in the current request URI