Skip to content

Commit 2e3c396

Browse files
xurshudyanXurshudyan
andauthored
rename to for clarity (#9783)
Co-authored-by: Xurshudyan <v.khurshudyan@aico.swiss>
1 parent fa659e6 commit 2e3c396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ Alternatively, you may use the `exclude_unless` rule to not validate a given fie
19341934

19351935
In some situations, you may wish to run validation checks against a field **only** if that field is present in the data being validated. To quickly accomplish this, add the `sometimes` rule to your rule list:
19361936

1937-
$v = Validator::make($data, [
1937+
$validator = Validator::make($data, [
19381938
'email' => 'sometimes|required|email',
19391939
]);
19401940

0 commit comments

Comments
 (0)