We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5671af9 commit aa9daa0Copy full SHA for aa9daa0
src/Illuminate/Http/Request.php
@@ -133,6 +133,23 @@ public function fullUrlWithQuery(array $query)
133
: $this->fullUrl().$question.Arr::query($query);
134
}
135
136
+ /**
137
+ * Get the full URL for the request without the given query string parameters.
138
+ *
139
+ * @param array|string $query
140
+ * @return string
141
+ */
142
+ public function fullUrlWithoutQuery($keys)
143
+ {
144
+ $query = Arr::except($this->query(), $keys);
145
+
146
+ $question = $this->getBaseUrl().$this->getPathInfo() === '/' ? '/?' : '?';
147
148
+ return count($query) > 0
149
+ ? $this->url().$question.Arr::query($query)
150
+ : $this->url();
151
+ }
152
153
/**
154
* Get the current path info for the request.
155
*
0 commit comments