Download the PHP package alareqi/filament-tree without Composer
On this page you can find all versions of the php package alareqi/filament-tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alareqi/filament-tree
More information about alareqi/filament-tree
Files in alareqi/filament-tree
Package filament-tree
Short Description Tree-structured Eloquent records rendered through native Filament tables.
License MIT
Informations about the package filament-tree
Filament Tree
Display adjacency-list Eloquent models as expandable, searchable, filterable, and reorderable trees in Filament 5. The package also includes a searchable tree-select form field.
Features
- Expand and collapse individual branches or the entire tree
- Use normal Filament table columns, search, filters, actions, and bulk actions
- Keep matching records visible together with their ancestors while filtering
- Drag records before, after, or inside another record
- Save all reorder changes together in a database transaction
- Select a parent or category with the
TreeSelectform component - Support integer and string keys, custom root values, RTL layouts, and dark mode
- Load package styles automatically—no panel plugin or custom theme setup
Requirements
- PHP 8.3 or later
- Laravel with Eloquent
- Filament 5
Installation
Laravel discovers the service provider automatically. The provider registers the package views, translations, and compiled CSS, so no panel registration or asset publishing is required.
Quick start
Assume categories is an adjacency-list table:
Add InteractsWithTreeTable to the resource's ListRecords page:
Then use TreeColumn for the visible tree column and call tree() after defining the columns:
The table starts expanded, root records have a null parent, and Filament's Enable reordering action starts tree reordering.
[!IMPORTANT] The column named by
treeColumnmust be aTreeColumn, and the list page must useInteractsWithTreeTable. Callreorderable()beforetree()so the package can read Filament's reorder configuration.
Tree select quick start
The placeholder represents null when it is selectable, making this suitable for choosing an optional parent.
Documentation
- Installation and data model
- Tree tables
- Reordering
- Tree select field
- Customization and API reference
- Troubleshooting and behavior notes
License
Filament Tree is open-source software licensed under the MIT license.
All versions of filament-tree with dependencies
filament/actions Version ^5.0
filament/forms Version ^5.0
filament/support Version ^5.0
filament/tables Version ^5.0
spatie/laravel-package-tools Version ^1.15