filament-tree
filament-tree copied to clipboard
Allow null value for default parent_id
When working with packages such as Laravel tree, we need the parent-less models to have null
as parent_id.
Currently, if we configure null
in the configuration file, it is parsed to 0 because of the integer cast of the plugin.
This change allow setting null
as the default parent id, which doesn't seems to break the plugin on my setup.