Larabros\Elogram\Http\UrlParserTrait¶
-
trait
UrlParserTrait
¶ Adds utility classes for parsing parts of a URL.
-
getPath
(UriInterface $uri)¶ Gets the path from a
UriInterface
instance after removing the version prefix.Parameters: - $uri (UriInterface) –
Returns: string
-
getQueryParams
(UriInterface $uri, $exclude =, ['sig', ]$params =[])¶ Gets the query parameters as an array from a
UriInterface
instance.Parameters: - $uri (UriInterface) –
- $exclude (array) –
- $params (array) –
Returns: array
-