Skip to content

Commit

Permalink
docs: add exception reference
Browse files Browse the repository at this point in the history
  • Loading branch information
beliven-fabrizio-gortani committed Nov 23, 2024
1 parent c00ed81 commit a18183f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ or instead use the trait method `addPasswordInHistory` like below:
$user->addPasswordInHistory($password_from_request);
```

Both of these methods throws an exception if the password is already in the history. So make sure to catch it.


You can also use a rule in your request validation:

```php
Expand Down

0 comments on commit a18183f

Please sign in to comment.