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 4e761f0 commit 4fc9369Copy full SHA for 4fc9369
src/Request.php
@@ -178,6 +178,17 @@ public static function rawData($item = null, $default = null)
178
return \Leaf\Anchor::deepGet($data, $item) ?? $default;
179
}
180
181
+ /**
182
+ * Return only get request data
183
+ *
184
+ * @param string|array $item The items to output
185
+ * @param mixed $default The default value to return if no data is available
186
+ */
187
+ public static function urlData($item = null, $default = null)
188
+ {
189
+ return \Leaf\Anchor::deepGet($_GET, $item) ?? $default;
190
+ }
191
+
192
/**
193
* Returns request data
194
*
0 commit comments