javaabu / block-editor
A block editor for Laravel powered by TipTap: blocks defined by PHP classes (attributes, validation, Blade and React rendering) and JS modules, multi-column layouts, Thaana typing, JSON storage with per-block validation and sanitizing, and Blade and Inertia React fields.
Requires
- php: ^8.4
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/database: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- illuminate/validation: ^12.0 || ^13.0
- illuminate/view: ^12.0 || ^13.0
- javaabu/forms: ^2.0@dev
- javaabu/manifest: ^1.0@dev
- javaabu/stencil: ^1.0@dev
- symfony/html-sanitizer: ^7.2 || ^8.0
Requires (Dev)
- javaabu/boost-javaabu-guidelines: ^1.4
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0 || ^11.0
- phpunit/phpunit: ^11.5.3 || ^12.5.8
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-15 10:54:03 UTC
README
A block editor for Laravel, built on TipTap. Blocks are PHP classes (attributes, validation, Blade rendering) with optional JS modules, and apps and packages register their own. Content is stored as JSON, validated and sanitized per block, and rendered with Blade or React. Multi-column layouts, phonetic Thaana typing and RTL-aware rendering are built in.
protected function casts(): array { return ['body' => AsBlockDocument::class]; } $request->validate(['body' => ['required', BlockContent::make()->required()]]);
<x-block-editor::editor name="body" :model="$post" /> <x-block-editor::content :content="$post->body" />
<BlockEditorField name="body" config={editor} /> // @javaabu/block-editor/react <BlockContent content={post.body} />
Documentation
You'll find the documentation on https://docs.javaabu.com/block-editor, and in the docs folder.
AI coding assistants can start from llms.txt. The package ships a Laravel Boost skill and guideline, which Boost finds by itself. See AI assistants.
Testing
composer test pnpm test pnpm examples # try the editor in a browser
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.