src/Laravelista/Ekko/Ekko.php
public function isActiveMatch($string, $output = "active")
    {
        if (strpos($this->url->current(), $string) !== false) {
            return $output;
        }

        return null;
    }
public function isActiveMatch($string, $output = "active")
    {
        if (strpos($this->url->current(), $string) !== false) {
            return $output;
        }

        return null;
    }
Detects if the given string is found in the current URL.

@param  string  $string
@param  string  $output
@return boolean