Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 86b5677

Browse filesBrowse files
Fix hyphenation of date-based for grammatical correctness (#10472)
1 parent 27538cc commit 86b5677
Copy full SHA for 86b5677

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎validation.md

Copy file name to clipboardExpand all lines: validation.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ Instead of passing a date string to be evaluated by `strtotime`, you may specify
11661166
'finish_date' => 'required|date|after:start_date'
11671167
```
11681168

1169-
For convenience, date based rules may be constructed using the fluent `date` rule builder:
1169+
For convenience, date-based rules may be constructed using the fluent `date` rule builder:
11701170

11711171
```php
11721172
use Illuminate\Validation\Rule;
@@ -1191,7 +1191,7 @@ The `afterToday` and `todayOrAfter` methods may be used to fluently express the
11911191

11921192
The field under validation must be a value after or equal to the given date. For more information, see the [after](#rule-after) rule.
11931193

1194-
For convenience, date based rules may be constructed using the fluent `date` rule builder:
1194+
For convenience, date-based rules may be constructed using the fluent `date` rule builder:
11951195

11961196
```php
11971197
use Illuminate\Validation\Rule;
@@ -1300,7 +1300,7 @@ if ($validator->stopOnFirstFailure()->fails()) {
13001300

13011301
The field under validation must be a value preceding the given date. The dates will be passed into the PHP `strtotime` function in order to be converted into a valid `DateTime` instance. In addition, like the [after](#rule-after) rule, the name of another field under validation may be supplied as the value of `date`.
13021302

1303-
For convenience, date based rules may also be constructed using the fluent `date` rule builder:
1303+
For convenience, date-based rules may also be constructed using the fluent `date` rule builder:
13041304

13051305
```php
13061306
use Illuminate\Validation\Rule;
@@ -1325,7 +1325,7 @@ The `beforeToday` and `todayOrBefore` methods may be used to fluently express th
13251325

13261326
The field under validation must be a value preceding or equal to the given date. The dates will be passed into the PHP `strtotime` function in order to be converted into a valid `DateTime` instance. In addition, like the [after](#rule-after) rule, the name of another field under validation may be supplied as the value of `date`.
13271327

1328-
For convenience, date based rules may also be constructed using the fluent `date` rule builder:
1328+
For convenience, date-based rules may also be constructed using the fluent `date` rule builder:
13291329

13301330
```php
13311331
use Illuminate\Validation\Rule;
@@ -1395,7 +1395,7 @@ The field under validation must be equal to the given date. The dates will be pa
13951395

13961396
The field under validation must match one of the given _formats_. You should use **either** `date` or `date_format` when validating a field, not both. This validation rule supports all formats supported by PHP's [DateTime](https://www.php.net/manual/en/class.datetime.php) class.
13971397

1398-
For convenience, date based rules may be constructed using the fluent `date` rule builder:
1398+
For convenience, date-based rules may be constructed using the fluent `date` rule builder:
13991399

14001400
```php
14011401
use Illuminate\Validation\Rule;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.