qqq
This commit is contained in:
@@ -59,6 +59,9 @@ class Validator
|
|||||||
{
|
{
|
||||||
if ($request->isPost) {
|
if ($request->isPost) {
|
||||||
$data = $request->getParsedBody();
|
$data = $request->getParsedBody();
|
||||||
|
if ($data instanceof \Closure) {
|
||||||
|
$data = $request->withParsedBody(call_user_func($data))->getParsedBody();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$data = $request->getQueryParams();
|
$data = $request->getQueryParams();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user