Skip to content

Commit

Permalink
Merge pull request #60 from GasparSukk/2.g
Browse files Browse the repository at this point in the history
enable null value for parent_id field
  • Loading branch information
cklei-carly authored Oct 22, 2024
2 parents 03ca1e9 + 4d9eec8 commit cfb433f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static function titleColumnName(): string
return config('filament-tree.column_name.title', 'title');
}

public static function defaultParentId(): int
public static function defaultParentId(): int|null
{
return (int) config('filament-tree.default_parent_id', -1);
return config('filament-tree.default_parent_id', -1);
}

public static function defaultChildrenKeyName(): string
Expand Down

0 comments on commit cfb433f

Please sign in to comment.