Skip to content

Commit

Permalink
Update Validator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 authored Oct 6, 2020
1 parent 308e995 commit 606e87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reactions/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function makeValidator($modifier, $rules)
$rules[0] = call_user_func($rules[0]);
}

$newData = app()->call($modifier);
$newData = app()->call($modifier, [request()->all()]);

return resolve(Factory::class)->make($newData, ...$rules);
}
Expand Down

0 comments on commit 606e87d

Please sign in to comment.