Skip to content

Commit 20f01d0

Browse files
committed
fixing various things
1 parent d249b8e commit 20f01d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

validation.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,12 @@ The field under validation must be a valid URL according to the `checkdnsrr` PHP
481481
<a name="rule-after"></a>
482482
#### after:_date_
483483

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:
484+
The field under validation must be a value after a given date. The dates will be passed into the `strtotime` PHP function:
485485

486486
'start_date' => 'required|date|after:tomorrow'
487+
488+
Instead of passing a date string to be evaluated by `strtotime`, you may specify another field to compare against the date:
489+
487490
'finish_date' => 'required|date|after:start_date'
488491

489492
<a name="rule-alpha"></a>
@@ -534,7 +537,7 @@ The field under validation must be a valid date according to the `strtotime` PHP
534537
<a name="rule-date-format"></a>
535538
#### date_format:_format_
536539

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.
540+
The field under validation must match the given _format_. The format will be evaluated using the PHP `date_parse_from_format` function. You should use **either** `date` or `date_format` when validating a field, not both.
538541

539542
<a name="rule-different"></a>
540543
#### different:_field_

0 commit comments

Comments
 (0)