We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd51fd2 commit c65346fCopy full SHA for c65346f
src/Models/BaseModel.php
@@ -115,7 +115,7 @@ public function getIndexRequiredOnFilteringAttribute(): array
115
public function getPrimaryKeyIdentifierAttribute(): mixed
116
{
117
return $this->getKeyName() !== '' ?
118
- $this->getKey() :
+ $this->getAttributeValue($this->getKeyName()) :
119
\implode($this::COMPOSITE_PK_SEPARATOR, \array_map(
120
fn(mixed $value): mixed => (\is_array($value) ? \last($value) : $value),
121
$this->getPrimaryKeyFilter()
0 commit comments