Skip to content
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
12 changes: 10 additions & 2 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ Below is a list of all available validation rules and their function:
[Between](#rule-between)
[Boolean](#rule-boolean)
[Confirmed](#rule-confirmed)
[Current Password](#rule-current-password)
[Date](#rule-date)
[Date Equals](#rule-date-equals)
[Date Format](#rule-date-format)
Expand Down Expand Up @@ -822,6 +823,13 @@ The field under validation must be able to be cast as a boolean. Accepted input

The field under validation must have a matching field of `{field}_confirmation`. For example, if the field under validation is `password`, a matching `password_confirmation` field must be present in the input.

<a name="rule-current-password"></a>
#### current_password

The field under validation must match the authenticated user's password. You may specify an [authentication guard](/docs/{{version}}/authentication) using the rule's first parameter:

'password' => 'current_password:api'

<a name="rule-date"></a>
#### date

Expand Down Expand Up @@ -1125,9 +1133,9 @@ The field under validation must be [numeric](https://www.php.net/manual/en/funct
<a name="rule-password"></a>
#### password

The field under validation must match the authenticated user's password. You may specify an [authentication guard](/docs/{{version}}/authentication) using the rule's first parameter:
The field under validation must match the authenticated user's password.

'password' => 'password:api'
> {note} This rule was renamed to `current_password` with the intention of removing it in Laravel 9. Please use the [Current Password](#rule-current-password) rule instead.

<a name="rule-present"></a>
#### present
Expand Down