You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: validation.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1166,7 +1166,7 @@ Instead of passing a date string to be evaluated by `strtotime`, you may specify
1166
1166
'finish_date' => 'required|date|after:start_date'
1167
1167
```
1168
1168
1169
-
For convenience, datebased 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:
1170
1170
1171
1171
```php
1172
1172
use Illuminate\Validation\Rule;
@@ -1191,7 +1191,7 @@ The `afterToday` and `todayOrAfter` methods may be used to fluently express the
1191
1191
1192
1192
The field under validation must be a value after or equal to the given date. For more information, see the [after](#rule-after) rule.
1193
1193
1194
-
For convenience, datebased 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:
1195
1195
1196
1196
```php
1197
1197
use Illuminate\Validation\Rule;
@@ -1300,7 +1300,7 @@ if ($validator->stopOnFirstFailure()->fails()) {
1300
1300
1301
1301
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`.
1302
1302
1303
-
For convenience, datebased 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:
1304
1304
1305
1305
```php
1306
1306
use Illuminate\Validation\Rule;
@@ -1325,7 +1325,7 @@ The `beforeToday` and `todayOrBefore` methods may be used to fluently express th
1325
1325
1326
1326
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`.
1327
1327
1328
-
For convenience, datebased 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:
1329
1329
1330
1330
```php
1331
1331
use Illuminate\Validation\Rule;
@@ -1395,7 +1395,7 @@ The field under validation must be equal to the given date. The dates will be pa
1395
1395
1396
1396
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.
1397
1397
1398
-
For convenience, datebased 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:
0 commit comments