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(); } /**