soeurngsar/gutenberg
最新稳定版本:v1.0.0
Composer 安装命令:
composer require soeurngsar/gutenberg
包简介
Content builder like wordpress Gutenberg by using Laraberg for laravel backpack
README 文档
README
Installation
- Install
composer require soeurngsar/gutenberg
- Publish views (optional)
php artisan vendor:publish --provider="SoeurngSar\Gutenberg\GutenbergServiceProvider"
- Publish laraberg resources
php artisan vendor:publish --provider="VanOns\Laraberg\LarabergServiceProvider"
Usage
On your CRUD Controller just change type to use gutenberg field
$this->crud->addField([ 'name' => 'content', 'label' => trans('backpack::pagemanager.content'), 'view_namespace' => 'gutenberg::fields', // this prop 'type' => 'gutenberg', // this prop 'placeholder' => trans('backpack::pagemanager.content_placeholder'), ]);
For other usage related Laraberg please follow their documentation
Update when you already published view (point 2 above)
When updating Gutenberg you have to publish the vendor files again by running this command:
php artisan vendor:publish --provider="SoeurngSar\Gutenberg\GutenbergServiceProvider" --tag=views --force
Credits
Compatibility
- Tested with laravel 8.0 with Backpack version 4.0
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-10-03
