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} />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.
composer test
pnpm test
pnpm examples # try the editor in a browserPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.