soeurngsar / gutenberg
Content builder like wordpress Gutenberg by using Laraberg for laravel backpack
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Language:Blade
Requires
- php: ^7.3
- backpack/crud: 4.1.*
- van-ons/laraberg: ^2.0.1
This package is auto-updated.
Last update: 2025-03-04 06:50:20 UTC
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