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

[12.x] Fix hyphenation of date-based for grammatical correctness #10472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions 10 validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ Instead of passing a date string to be evaluated by `strtotime`, you may specify
'finish_date' => 'required|date|after:start_date'
```

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

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

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

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

```php
use Illuminate\Validation\Rule;
Expand Down Expand Up @@ -1300,7 +1300,7 @@ if ($validator->stopOnFirstFailure()->fails()) {

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

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

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

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

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

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

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.

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

```php
use Illuminate\Validation\Rule;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.