van-ons / filament-content-builder
Add a customizable content builder to your Filament admin panel, complete with a set of frequently used content blocks.
Package info
github.com/VanOns/filament-content-builder
pkg:composer/van-ons/filament-content-builder
Requires
- php: ^8.2
- bensampo/laravel-embed: ^3.1.0
- filament/filament: ^4.0|^5.0
- illuminate/contracts: ^11.0|^12.0|^13.0
- van-ons/filament-field-library: ^2.0.9
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.87
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
- phpstan/phpstan: ^2.1
README
Filament Content Builder
Add a customizable content builder to your Filament admin panel, complete with a set of frequently used content blocks.
Quick start
For Filament version compatibility, see Compatibility.
Installation
Start by installing the package via Composer:
composer require van-ons/filament-content-builder
Usage
Add the ContentBlocksRenderer field to your Filament resource:
use VanOns\FilamentContentBuilder\Fields\ContentBlocksRenderer; ContentBlocksRenderer::make('content') ->label(__('Content')) ->required(),
Then render the blocks in your Blade view:
<x-filament-content-builder::block-renderer :blocks="$post->content" />
Documentation
Please see the documentation for detailed information about installation and usage.
Contributing
Please see Contributing for more information about how you can contribute.
Testing
composer test
Changelog
Please see Changelog for more information about what has changed recently.
Upgrading
Please see Upgrading for more information about how to upgrade.
Security
Please see Security for more information about how we deal with security.
Credits
We would like to thank the following contributors for their contributions to this project:
License
The scripts and documentation in this project are released under the MIT License.
