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 a1a95f3 commit 325fc5fCopy full SHA for 325fc5f
src/Concern/HasRecords.php
@@ -43,7 +43,7 @@ public function getRootLayerRecords(): \Illuminate\Support\Collection
43
return $record->isRoot();
44
}
45
if (method_exists($record, 'determineParentColumnName')) {
46
- return $record->getAttributeValue($record->determineParentColumnName()) === Utils::defaultParentId();
+ return $record->getAttributeValue($record->determineParentColumnName()) == Utils::defaultParentId();
47
48
return $record->getAttributeValue('parent') === Utils::defaultParentId();
49
});
0 commit comments