Skip to content

Commit

Permalink
fix: temporary fix (will update later)
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Aug 24, 2024
1 parent 1882a7c commit 8f3b9d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ public static function validate(array $rules, bool $returnFullData = false)
{
$data = \Leaf\Form::validate(static::body(false), $rules);

if ($data === false) {
return false;
}

return $returnFullData ? $data : static::get(array_keys($rules));
}

Expand Down

0 comments on commit 8f3b9d4

Please sign in to comment.