From a1389e2364473be5d2178b85ae23919654ba75c6 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 14 Nov 2024 10:47:08 -0500 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 262b966..003b36b 100644 --- a/README.md +++ b/README.md @@ -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']);