Skip to content

Commit

Permalink
Fix form ns
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Dec 22, 2023
1 parent b5ad42d commit ec8b92b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/Application/Context/AppRequestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ public function input(mixed ...$fields): mixed
{
$input = $this->compileInput();

$fields = array_filter($fields);

if ($fields === []) {
if (is_array($input) || is_object($input)) {
return collect($input);
Expand Down

0 comments on commit ec8b92b

Please sign in to comment.