Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jun 18, 2021
1 parent 11543be commit 1583854
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function post($name = null, $default = null)
}

if ($name === null) {
return Request::post();
return Request::all();
}

/*
Expand All @@ -56,7 +56,7 @@ function post($name = null, $default = null)
$name = implode('.', October\Rain\Html\Helper::nameToArray($name));
}

return Request::post($name, $default);
return array_get(Request::all(), $name, $default);
}
}

Expand All @@ -77,7 +77,7 @@ function get($name = null, $default = null)
$name = implode('.', October\Rain\Html\Helper::nameToArray($name));
}

return Request::query($name, $default);
return array_get(Request::query(), $name, $default);
}
}

Expand Down

0 comments on commit 1583854

Please sign in to comment.