Same field.Now with branches.
SelectTree replaces Select and saves to the same BelongsTo or BelongsToMany relationship.
Native Filament Select
Select::make('department_id') ->relationship('department', 'name')
- ✕Every department in one flat list
- ✕Search shows the name, not where it is in the tree
With Warp Tree 2 lines changed
SelectTree::make('department_id') ->relationship('department', 'name', parentAttribute: 'parent_id')
- ✓Open the branches; only the branch you open is read, 100 items at a time
- ✓Search shows each match inside its branches: Sales › East › Boston
- ✓Saved to the same relationship as Select
A tree of 50,000 departments opens as fast as one of 20