imagina/bcrud-module
Composer 安装命令:
composer require imagina/bcrud-module
包简介
Crud Module for AsgardsCMS based on https://backpackforlaravel.com/
README 文档
README
Quickly build an admin interface for your Eloquent models, using Laravel 5. Erect a complete CMS at 10 minutes/model, max.
Features:
- 33+ field types
- 1-n relationships
- n-n relationships
- Table view with search, pagination, click column to sort by it
- Reordering (nested sortable)
- Back-end validation using Requests
- Translatable models (multi-language) // TODO
- Easily extend fields (customising a field type or adding a new one is as easy as creating a new view with a particular name)
- Easily overwrite functionality (customising how the create/update/delete/reorder process works is as easy as creating a new function with the proper name in your EntityCrudCrontroller)
Subscribe to the Mailchimp list to be announced of any major features or breaking changes (once every 1-3 months).
Install
- In your terminal:
$ composer require backpack/crud
- Add this to your config/app.php, under "providers":
Backpack\CRUD\CrudServiceProvider::class,
- Run:
$ php artisan elfinder:publish #published elfinder assets $ php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="public" #publish CRUD assets $ php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="lang" #publish the lang files $ php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="config" #publish the config file $ php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="elfinder" #publish overwritten elFinder assets
- Define an 'uploads' disk. In your config/filesystems.php add this disk:
'uploads' => [ 'driver' => 'local', 'root' => public_path('uploads'), ],
-
If you haven't already, go through steps 3-5 from the Backpack\Base installation (it provides the general views for the admin panel - layout, menu, notification bubbles, etc).
-
[Optional] You can now the file manager to the menu, in
resources/views/vendor/backpack/base/inc/sidebar.blade.phpormenu.blade.php:
<li><a href="{{ url(config('backpack.base.route_prefix').'/elfinder') }}"><i class="fa fa-files-o"></i> <span>File manager</span></a></li>
Usage
Check out the documentation at https://laravelbackpack.com
In short:
-
Make your model use the CrudTrait.
-
Create a controller that extends CrudController.
-
Create a new resource route.
-
(optional) Define your validation rules in a Request files.
(Optional) Enable Revisions
CRUD supports tracking and restoring Model change Revisions with the help of VentureCraft/revisionable.
To enable revisions on your Model do the following:
- Run:
$ php artisan migrate --path=vendor/venturecraft/revisionable/src/migrations #run revisionable migrations
- Add the
\Venturecraft\Revisionable\RevisionableTraitTrait to your Model. E.g:
namespace MyApp\Models; class Article extends Eloquent { use \Backpack\CRUD\CrudTrait, \Venturecraft\Revisionable\RevisionableTrait; // If you are using another bootable trait the be sure to override the boot method in your model public static function boot() { parent::boot(); } }
- Enable access to Revisions in your CrudController with:
$this->crud->allowAccess('revisions');
Head on over to the VentureCraft/revisionable GitHub repo to see the full documentation and extra configuration options.
Screenshots
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hello@tabacitu.ro instead of using the issue tracker.
Credits
- Cristian Tabacitu - architect, designer, manager, main coder, PR guy, customer service guy & chief honcho
- Cristian Tone - architecture improvements
- Marius Constantin - bug fixing & improvements
- Federico Liva - bug fixing
- All Contributors
Special thanks go to:
- John Skoumbourdis - Grocery CRUD for CodeIgniter was the obvious inspiration for this package.
- Jaroen Noten - creator of AdminLTE
License
The MIT License (MIT). Please see License File for more information.
imagina/bcrud-module 适用场景与选型建议
imagina/bcrud-module 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 330 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 09 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 imagina/bcrud-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imagina/bcrud-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 330
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-26