Skip to content

Commit d249b8e

Browse files
committed
Merge branch 'patch-2' of https://github.com/TheShiftExchange/docs into TheShiftExchange-patch-2
2 parents fd76d68 + 7406a6d commit d249b8e

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,7 +481,10 @@ 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.
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'
485488

486489
<a name="rule-alpha"></a>
487490
#### alpha
@@ -531,7 +534,7 @@ The field under validation must be a valid date according to the `strtotime` PHP
531534
<a name="rule-date-format"></a>
532535
#### date_format:_format_
533536

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.
535538

536539
<a name="rule-different"></a>
537540
#### different:_field_

0 commit comments

Comments
 (0)