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 4fc9369 commit 2ab3671Copy full SHA for 2ab3671
src/Request.php
@@ -189,6 +189,17 @@ public static function urlData($item = null, $default = null)
189
return \Leaf\Anchor::deepGet($_GET, $item) ?? $default;
190
}
191
192
+ /**
193
+ * Return only get request data
194
+ *
195
+ * @param string|array $item The items to output
196
+ * @param mixed $default The default value to return if no data is available
197
+ */
198
+ public static function postData($item = null, $default = null)
199
+ {
200
+ return \Leaf\Anchor::deepGet($_POST, $item) ?? $default;
201
+ }
202
+
203
/**
204
* Returns request data
205
*
0 commit comments