Skip to content

Commit cfb433f

Browse files
authored
Merge pull request #60 from GasparSukk/2.g
enable null value for parent_id field
2 parents 03ca1e9 + 4d9eec8 commit cfb433f

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)