PHPackages                             day4/tree-view - 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. day4/tree-view

ActiveLibrary[Admin Panels](/categories/admin)

day4/tree-view
==============

A Laravel Nova tool.

0.5.1(5y ago)991.7k↓23.8%13[7 issues](https://github.com/u12206050/nova-treeview/issues)MITVuePHP &gt;=7.1.0

Since Mar 16Pushed 4y ago3 watchersCompare

[ Source](https://github.com/u12206050/nova-treeview)[ Packagist](https://packagist.org/packages/day4/tree-view)[ RSS](/packages/day4-tree-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

‼️ This repository is no longer maintained by the original author. PRs are still welcome, but active support is limited

Nova Tree View
==============

[](#nova-tree-view)

Display a model in a Tree View with drag and drop functionality. Useful for category structure.

Setup
-----

[](#setup)

Make sure your model you wish to use in the tree structure has the following columns:

```
parent_id
is_active
order

```

Add the tool to `NovaServiceProvider.php`

Category Model Example:
-----------------------

[](#category-model-example)

```
Schema::create('categories', function (Blueprint $table) {
    $table->unsignedInteger('id')->autoIncrement();
    $table->string('title');
    $table->string('slug');
    $table->unsignedInteger('parent_id')->nullable();
    $table->boolean('is_active')->default(true);
    $table->tinyInteger('order')->default(0);
});

```

Usage
-----

[](#usage)

```
/app/Providers/NovaServiceProvider.php
...
use Day4\TreeView\TreeView;
    ...
    public function tools()
    {
        return [
            ...
            new TreeView([
             // ['NAME_IN_SIDEBAR', 'TABLE_NAME']
                ['Categories', 'categories']
            ])
        ];
    }

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Total

3

Last Release

2072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce4d4851a76e7645641761d652329da8749467ae556b190b9894835df1d1a5ac?d=identicon)[Gerardlamo](/maintainers/Gerardlamo)

---

Top Contributors

[![u12206050](https://avatars.githubusercontent.com/u/6641242?v=4)](https://github.com/u12206050 "u12206050 (3 commits)")[![muhammadsaeedparacha](https://avatars.githubusercontent.com/u/2680384?v=4)](https://github.com/muhammadsaeedparacha "muhammadsaeedparacha (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/day4-tree-view/health.svg)

```
[![Health](https://phpackages.com/badges/day4-tree-view/health.svg)](https://phpackages.com/packages/day4-tree-view)
```

###  Alternatives

[benjacho/belongs-to-many-field

belongsToMany nova representation in field.

158811.4k1](/packages/benjacho-belongs-to-many-field)[pdmfc/nova-action-button

A Laravel Nova field to run actions.

37733.0k1](/packages/pdmfc-nova-action-button)[khalin/nova-link-field

A Laravel Nova Link field.

31562.2k2](/packages/khalin-nova-link-field)[ebess/nova-collapsible-sidebar

A collapsible sidebar for Laravel Nova.

32313.2k](/packages/ebess-nova-collapsible-sidebar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
