webfactor/laravel-backpack-nestedmodels 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

webfactor/laravel-backpack-nestedmodels

Composer 安装命令:

composer require webfactor/laravel-backpack-nestedmodels

包简介

Intuitively create model trees with Laravel Backpack CRUD

README 文档

README

Attention: This Package is for Laravel Backpack v3 only. There are no plans to make it compatible with v4.

LaravelBackpackNestedmodels

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Intuitively create tree structured models in your Backpack CRUD admin panel.

Install

Via Composer

$ composer require webfactor/laravel-backpack-nestedmodels

Usage

If you want to easily and intuitively manage your nested models with Backpack CRUD you just need to do the following:

  • Create your models migration. You can use the macro $table->tree() to get all necessary columns to work with kalnoy/laravel-nestedset and this package.
  • Create your BackpackCRUD controllers and models as documented in backpack/CRUD In most cases this is just running php artisan backpack:crud after creating the model migration.
  • Be sure your model uses NestedModelTrait
  • Let your CrudController extend Webfactor\Laravel\Backpack\NestedModels\Controllers\NestedModelsCrudController instead of BaseCrudController
  • Call $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.

Customization

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.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email oliver.ziegler@webfactor.de instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 147
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固