Skip to content

Commit e31686d

Browse files
committed
feat: add getFullUrl method
1 parent 66ea0dd commit e31686d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Request.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,15 @@ public static function getUrl(): string
695695
return $url;
696696
}
697697

698+
/**
699+
* Get Full URL (scheme + host [ + port if non-standard ] + path + query string)
700+
* @return string
701+
*/
702+
public static function getFullUrl(): string
703+
{
704+
return static::getUrl() . static::getPathInfo() . (static::getQueryString() ? '?' . static::getQueryString() : '');
705+
}
706+
698707
/**
699708
* Get IP
700709
* @return string

0 commit comments

Comments
 (0)