Commit 37cd08fa authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1357 from aebersold/master

documentation fix on validators
parents e531cd63 7eb5be79
...@@ -196,11 +196,11 @@ Many times, when updating a record, you want to use the unique rule, but exclude ...@@ -196,11 +196,11 @@ Many times, when updating a record, you want to use the unique rule, but exclude
#### Validate that a date attribute is before a given date: #### Validate that a date attribute is before a given date:
'birthdate' => 'before:1986-28-05'; 'birthdate' => 'before:1986-05-28';
#### Validate that a date attribute is after a given date: #### Validate that a date attribute is after a given date:
'birthdate' => 'after:1986-28-05'; 'birthdate' => 'after:1986-05-28';
> **Note:** The **before** and **after** validation rules use the **strtotime** PHP function to convert your date to something the rule can understand. > **Note:** The **before** and **after** validation rules use the **strtotime** PHP function to convert your date to something the rule can understand.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment