HasQuery
trait HasQuery
Properties
| protected ArrayRepository|null | $queryRepository | The request query parameters. |
|
| protected string|null | $queryString | The already-encoded query string override. |
Methods
Get the raw query string override, without a leading question mark.
Replace the base URL and endpoint query string.
Get the request query parameters.
Add query parameters to the request.
Remove the given query parameters from the request.
Resolve the default request query parameters.
Resolve the default raw query string override.
Get the request query repository.
Details
at line 24
string|null
queryString()
Get the raw query string override, without a leading question mark.
at line 32
HasQuery
withQueryString(string $query)
Replace the base URL and endpoint query string.
at line 44
array
queryParameters()
Get the request query parameters.
at line 55
HasQuery
withQueryParameters(array $parameters)
Add query parameters to the request.
at line 71
HasQuery
withoutQueryParameters(array|string $keys)
Remove the given query parameters from the request.
Only values added through the query parameter methods are removed. Values embedded in the base URL, endpoint or raw query string are unchanged.
at line 83
protected array
defaultQuery()
Resolve the default request query parameters.
at line 91
protected string|null
defaultQueryString()
Resolve the default raw query string override.
at line 99
protected ArrayRepository
queryRepository()
Get the request query repository.