From 6755311748d405c74bb771da68dac5a01561e144 Mon Sep 17 00:00:00 2001 From: Hafez Divandari Date: Mon, 6 Jan 2025 22:01:12 +0330 Subject: [PATCH] fallback to parent (#54096) --- .../Database/Eloquent/Concerns/HasUniqueStringIds.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php b/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php index fa50265b2d23..324961f2b2ea 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php @@ -38,7 +38,7 @@ public function initializeHasUniqueStringIds() */ public function uniqueIds() { - return [$this->getKeyName()]; + return $this->usesUniqueIds() ? [$this->getKeyName()] : parent::uniqueIds(); } /** @@ -75,7 +75,7 @@ public function getKeyType() return 'string'; } - return $this->keyType; + return parent::getKeyType(); } /** @@ -89,7 +89,7 @@ public function getIncrementing() return false; } - return $this->incrementing; + return parent::getIncrementing(); } /**