public static function activeSegUrl(string $name, int $segment = 1, $class = 'active') : string
    {
        return Request::segment($segment) == $name ? $class : '';
    }
public static function activeSegUrl(string $name, int $segment = 1, $class = 'active') : string
    {
        return Request::segment($segment) == $name ? $class : '';
    }
public static function activeSegUrl ( string $ name , int $ segment = 1 , $ class = 'active' ) : string { return Request :: segment ( $ segment ) == $ name ? $ class : '' ; }
Returns if the request URL have an active segment.

@param  string   $name
@param  int      $segment
@param  string   $class
@return string
Returns if the request URL have an active segment .