PHPackages                             crayon/nova-treeview - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. crayon/nova-treeview

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crayon/nova-treeview
====================

A Laravel Nova tool.

0.5.2(4y ago)013MITVuePHP &gt;=7.1.0

Since Mar 16Pushed 4y agoCompare

[ Source](https://github.com/crayon1337/nova-treeview)[ Packagist](https://packagist.org/packages/crayon/nova-treeview)[ RSS](/packages/crayon-nova-treeview/feed)WikiDiscussions master Synced 5d ago

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

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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~156 days

Total

4

Last Release

1781d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/crayon-nova-treeview/health.svg)

```
[![Health](https://phpackages.com/badges/crayon-nova-treeview/health.svg)](https://phpackages.com/packages/crayon-nova-treeview)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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