documentation error, wrong date format

This commit is contained in:
aebersold 2012-10-16 17:55:50 +02:00
parent f53f07df4a
commit 7eb5be794c
1 changed files with 3 additions and 3 deletions

View File

@ -196,11 +196,11 @@ ### Dates
#### 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:
'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.
@ -450,4 +450,4 @@ #### Adding a custom validation rule:
Notice that the method is named using the **validate_rule** naming convention. The rule is named "awesome" so the method must be named "validate_awesome". This is one way in which registering your custom rules and extending the Validator class are different. Validator classes simply need to return true or false. That's it!
Keep in mind that you'll still need to create a custom message for any validation rules that you create. The method for doing so is the same no matter how you define your rule!
Keep in mind that you'll still need to create a custom message for any validation rules that you create. The method for doing so is the same no matter how you define your rule!