PHPackages                             ubertech-za/filament-tree-enhanced - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. ubertech-za/filament-tree-enhanced

ActiveLibrary[Admin Panels](/categories/admin)

ubertech-za/filament-tree-enhanced
==================================

An enhanced tree layout plugin for Filament Admin with policy authorization and dedicated tree resources

4.0.1(7mo ago)0172—0%[2 PRs](https://github.com/ubertech-za/filament-tree-enhanced/pulls)MITPHPPHP ^8.1CI passing

Since Sep 16Pushed 5mo agoCompare

[ Source](https://github.com/ubertech-za/filament-tree-enhanced)[ Packagist](https://packagist.org/packages/ubertech-za/filament-tree-enhanced)[ Docs](https://github.com/ubertech-za/filament-tree-enhanced)[ RSS](/packages/ubertech-za-filament-tree-enhanced/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (15)Versions (5)Used By (0)

Enhanced Filament Tree
======================

[](#enhanced-filament-tree)

This is an enhanced version of the Filament Tree plugin, maintained by Uber Technologies cc. We've built upon the excellent work of the original authors at Solution Forest to add policy authorization, dedicated tree resources that replace table views, and enhanced Filament v4 compatibility.

**Key Enhancements:**

- Laravel policy authorization with automatic action hiding
- Dedicated tree resources that replace table views entirely
- Enhanced parent-child relationship management
- Improved action system with hooks
- Full backward compatibility with original features

**Attribution:** Originally created by [Solution Forest](https://solutionforest.com), enhanced and maintained by Uber Technologies cc.

Filament Tree
=============

[](#filament-tree)

Filament Tree is a plugin for Filament Admin that creates a model management page with a heritage tree structure view. This plugin can be used to create menus and more.

[![Latest Version on Packagist](https://camo.githubusercontent.com/a9e3fc554e9508e7433406b64b9a3e5c29592a93aa05d66d98a2e0730bd52f71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f75626572746563682d7a612f66696c616d656e742d747265652d656e68616e6365642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ubertech-za/filament-tree-enhanced)[![Total Downloads](https://camo.githubusercontent.com/46bd3107609f53282e74839b5c45e556d1962780323db58a22f3dc2bacfeba5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75626572746563682d7a612f66696c616d656e742d747265652d656e68616e6365642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ubertech-za/filament-tree-enhanced)

This plugin creates model management page with heritage tree structure view for Filament Admin. It could be used to create menu, etc.

Supported Filament versions
---------------------------

[](#supported-filament-versions)

Filament VersionPlugin Versionv44.x.xInstallation
------------

[](#installation)

To install the package, run the following command:

```
composer require ubertech-za/filament-tree-enhanced
```

> **Important: Need to publish assets after version 2.x**

```
php artisan filament:assets
```

> **Note: Add plugin Blade files to your custom theme `tailwind.config.js` for dark mode.**
>
> To set up your own custom theme, you can visit the [official instruction page](https://filamentphp.com/docs/4.x/styling/overview#creating-a-custom-theme) on the Filament website.

Add the plugin's views and css to your `theme.css` file.

```
@import '/ubertech-za/filament-tree-enhanced/resources/css/jquery.nestable.css';
@import '/ubertech-za/filament-tree-enhanced/resources/css/button.css';
@import '/ubertech-za/filament-tree-enhanced/resources/css/custom-nestable-item.css';
@source '/ubertech-za/filament-tree-enhanced/resources/**/*.blade.php';
```

Then, publish the config file using:

```
php artisan vendor:publish --tag="filament-tree-enhanced-config"
```

You can set your preferred options by adding the following code to your `config/filament-tree-enhanced.php` file:

```
