Download the PHP package back1ng/filament-tree without Composer

On this page you can find all versions of the php package back1ng/filament-tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-tree

Eloquent tree with Filament

Latest Version on Packagist Build and check code status PHP Version Laravel Version Filament Version

Build the tree from your Eloquent model with Filament

This plugin offers a tree builder for the Filament admin panel, allows you to build menu, category tree and etc. and management.

Advantages of the plugin:

Dark Theme
Light Theme

Table of Contents:

Installation

Installation

You can install the package via composer:

Add the plugin service provider to bootstrap/providers.php:

Prepare your model

Trait

A.

You have the existing model with Nested Set integration.
Just add InteractsWithTree trait.

B.

If your model are "clean", so please follow next steps.

  1. Add NodeTrait and InteractsWithTree traits to the model.

  2. Create new migration

And add columns:

And run the migration:

Tree label attribute

Then please define attribute name of the nodes in your tree, eg. title, add method to the model:

Your model is ready.

Create the tree page

To add the tree page to your admin panel,
call artisan command and input name of page and the model class:

You can setup fields you need while you create or edit any of tree record. Fill the getCreateForm and getEditForm in your tree page, eg.

Read more about form fields at
https://filamentphp.com/docs/4.x/forms/getting-started

Create Form
Edit form
Delete Confirmation

That's all!
Now you can manage your tree based on the model!

Configuration

You can publish config with:

Customization

Caption

To display any attribute as second line of node label, please add the method to you model and define the caption value:

Infolist

To display any meta information next to node label, you able to fill the method of your page with Infolist entries, eg.

Read more at
https://filamentphp.com/docs/4.x/infolists/entries/getting-started#available-entries

Please note,
created tree page extends Filament Page, so all customizations are available.
Get know about at https://filamentphp.com/docs/4.x/panels/pages

Localization

You can publish translations with:

Optionally, you can publish the views using

Advanced features

Scope

You can have as many models as you want in your project, and you can add a tree page for each one.
But what if your project has multiple menus (for example, in the header and footer) that have the same attributes? What if the menu items are stored in one table? You can create a separate page for each of your menus using scopes.

To do this, specify the attribute by which the item belongs to the menu (eg. menu_id), add method to your model:

In you tree page, specify how exactly you need to get the menu items for a specific admin page:

That's all!

Please read more at
https://github.com/lazychaser/laravel-nestedset?tab=readme-ov-file#scoping

Fix tree

If you have changed the structure of your tree, you need to rebuild the relationships of all nodes.
To do this, use the button "Fix tree" at the footer of your tree page.

Support and feedback

If you find a bug, please submit an issue directly to GitHub. Filament Tree Issues

As always, if you need further support, please contact us. https://www.15web.ru/contacts

Copyright and license

Copyright © Studio 15, 2012 - Present.
Code released under the MIT license.


All versions of filament-tree with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/support Version ^4.0
illuminate/contracts Version ^11.28 || ^12.0
kalnoy/nestedset Version ^6.0.5
spatie/laravel-package-tools Version ^1.14.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package back1ng/filament-tree contains the following files

Loading the files please wait ...