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 f137a2b commit a3678c6Copy full SHA for a3678c6
src/helpers/NestedSetsHelper.php
@@ -38,7 +38,7 @@ public static function getHierarchicalArray($modelClass)
38
$path[$depthValue] = $c;
39
40
$value = [
41
- 'id' => $model->primaryKey()[0],
+ 'id' => $model->primaryKey,
42
'text' => $model->name,
43
];
44
0 commit comments