You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: validation.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -481,7 +481,10 @@ The field under validation must be a valid URL according to the `checkdnsrr` PHP
481
481
<aname="rule-after"></a>
482
482
#### after:_date_
483
483
484
-
The field under validation must be a value after a given date. The dates will be passed into the `strtotime` PHP function.
484
+
The field under validation must be a value after a given date. The dates will be passed into the `strtotime` PHP function. You can also pass another field here:
485
+
486
+
'start_date' => 'required|date|after:tomorrow'
487
+
'finish_date' => 'required|date|after:start_date'
485
488
486
489
<aname="rule-alpha"></a>
487
490
#### alpha
@@ -531,7 +534,7 @@ The field under validation must be a valid date according to the `strtotime` PHP
531
534
<aname="rule-date-format"></a>
532
535
#### date_format:_format_
533
536
534
-
The field under validation must match the given _format_. The format will be evaluated using the PHP `date_parse_from_format` function.
537
+
The field under validation must match the given _format_. The format will be evaluated using the PHP `date_parse_from_format` function._Note:_ You should use either `date` or `date_format` - not both.
0 commit comments