PHPackages                             izica/select-tree-view-for-backpack - 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. izica/select-tree-view-for-backpack

ActiveLibrary[Admin Panels](/categories/admin)

izica/select-tree-view-for-backpack
===================================

Select tree view

1.0.5(3y ago)157MITBlade

Since Aug 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/izica/select-tree-view-for-backpack)[ Packagist](https://packagist.org/packages/izica/select-tree-view-for-backpack)[ Docs](https://github.com/izica/select-tree-view-for-backpack)[ RSS](/packages/izica-select-tree-view-for-backpack/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Laravel Backpack Select tree view
---------------------------------

[](#laravel-backpack-select-tree-view)

1. [Installation](#installation)
2. [Usage](#usage)

[![Alt text](screenshots/screenshot.png?raw=true "screenshot")](screenshots/screenshot.png?raw=true)

### Installation

[](#installation)

```
composer require izica/select-tree-view-for-backpack

```

### Usage

[](#usage)

#### Table structure examples

[](#table-structure-examples)

```
catalog-category
- id
- name
- catalog_category_id

```

```
catalog-product
- id
- name
- catalog_category_id

```

#### Code

[](#code)

```
protected function setupCreateOperation()
{
     CRUD::addField([
        'view_namespace'    => 'izica::fields', // don't modify this field

        // REQUIRED
        'type'              => 'select_tree_view',
        'label'             => "Catalog category",
        'name'              => 'catalog_category_id',

        // in product view
        'options'           => CatalogCategory::get()->toArray(),
        // or in category view, with preventing loops on itself
        'options'           => CatalogCategory::whereNot('id', $this->crud->getCurrentEntryId())->get()->toArray(),

        // OPTIONAL
        'options_parent_id' => 'catalog_category_id',   // using value from 'name' param by default
        'depth_prefix'      => '.  ',                   //default value
        'depth_max'         => 10,                      //default value
        'options_root_id'   => null,                    //default value
        'options_sort_by'   => 'name',                  //default value
        'option_name'       => 'name',                  //default value
        'allows_null'       => true,                    //default value
        'default'           => null,                    //default value
    ]);
}
```

To prevent loops you

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~48 days

Recently: every ~60 days

Total

6

Last Release

1127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d4a3945b13adc2ef1e9d7ef3a41c66e28706ae3229b85fc3696114eea990a46?d=identicon)[izica](/maintainers/izica)

---

Top Contributors

[![izica](https://avatars.githubusercontent.com/u/13401922?v=4)](https://github.com/izica "izica (13 commits)")

---

Tags

pluginlaraveltreetreeviewrelationsaddonadmin-panelbackpacklaravel backpackBackpack for LaravelSelete

### Embed Badge

![Health badge](/badges/izica-select-tree-view-for-backpack/health.svg)

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

###  Alternatives

[izica/relations-widgets-for-backpack

Widgets for preview model relations in laravel backpack

2927.3k](/packages/izica-relations-widgets-for-backpack)[ziming/json-field-for-backpack

A Json Editor Field for Backpack

3597.3k](/packages/ziming-json-field-for-backpack)[backpack/langfilemanager

An interface to edit language files, for Laravel Backpack.

91230.1k1](/packages/backpack-langfilemanager)[digitallyhappy/toggle-field-for-backpack

Easily toggle boolean attributes with a new field type.

2138.4k](/packages/digitallyhappy-toggle-field-for-backpack)[backpack/revise-operation

Backpack interface for venturecraft/revisionable

43279.9k1](/packages/backpack-revise-operation)[backpack/pagemanager

Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.

371522.6k6](/packages/backpack-pagemanager)

PHPackages © 2026

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