Attention: This Package is for Laravel Backpack v3 only. There are no plans to make it compatible with v4.
Intuitively create tree structured models in your Backpack CRUD admin panel.
Via Composer
$ composer require webfactor/laravel-backpack-nestedmodels
If you want to easily and intuitively manage your nested models with Backpack CRUD you just need to do the following:
$table->tree()
to get all necessary columns to work with kalnoy/laravel-nestedset and this package.php artisan backpack:crud
after creating the model migration.NestedModelTrait
Webfactor\Laravel\Backpack\NestedModels\Controllers\NestedModelsCrudController
instead of BaseCrudController$this->treeSetup()
in your setup
function after setting the crud model.That's all. You are ready to see your tree structure in action. Just navigate to the appropriate route.
You can run
$ php artisan vendor:publish --provider="Webfactor\Laravel\Backpack\NestedModels\NestedModelsServiceProvider"
to publish all views and edit them in 'resources/views/vendor/webfactor/nestedmodels' to customize the look and feel.
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email oliver.ziegler@webfactor.de instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.