Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Nov 14, 2024
1 parent 7eab54e commit a1389e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ Similarly, attempting to create a model with an empty ID will throw a `InvalidKe
Visit::create(['id' => '']);
```

If you're running a high traffic application that may encounter a race condition, you may
pass in `true` in the second argument to `create` to ignore the exception and delete the existing record:
If you're running a high traffic application that may encounter a race condition, you may pass in `true`
in the second argument to `create` to ignore the `DuplicateKeyException` and delete the existing record:

```php
Visit::create(['id' => 'custom-id']);
Expand Down

0 comments on commit a1389e2

Please sign in to comment.