Skip to content

Commit 995f3b1

Browse files
committed
Document the Request::fullUrlWithQuery() method
1 parent 6556840 commit 995f3b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

requests.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ To get the full URL, not just the path info, you may use the `url` or `fullUrl`
8787
// With Query String...
8888
$url = $request->fullUrl();
8989

90+
You may also get the full URL after appending query parameters, so if the request is targeted at `http://domain.com/foo`, the following method will return `http://domain.com/foo?bar=baz`:
91+
92+
$url = $request->fullUrlWithQuery(['bar' => 'baz']);
93+
9094
#### Retrieving The Request Method
9195

9296
The `method` method will return the HTTP verb for the request. You may also use the `isMethod` method to verify that the HTTP verb matches a given string:

0 commit comments

Comments
 (0)