Skip to content

Commit 4d9eec8

Browse files
committed
enable null value for parent_id field
1 parent a31204a commit 4d9eec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Support/Utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public static function titleColumnName(): string
2727
return config('filament-tree.column_name.title', 'title');
2828
}
2929

30-
public static function defaultParentId(): int
30+
public static function defaultParentId(): int|null
3131
{
32-
return (int) config('filament-tree.default_parent_id', -1);
32+
return config('filament-tree.default_parent_id', -1);
3333
}
3434

3535
public static function defaultChildrenKeyName(): string

0 commit comments

Comments
 (0)