Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.
- Currently you can only have one Gutenberg field on a given page, due to how
the Gutenberg library is implemented. Efforts are being made to address this
upstream, but it has yet to be determined if that is possible.
- The editor UI still allows and prompts for drag-and-drop functionality.
Unfortunately that is currently not functional, and the Media Library button
must be used instead.
- Install the package:
composer require genealabs/nova-gutenberg:*
- Publish Laravel FileManager's assets and config:
php artisan vendor:publish --tags=lfm_config
php artisan vendor:publish --tags=lfm_public
class BlogPost extends Resource
public function fields(Request $request) : array