skyraptor/filament-blocks-builder
blocks text field). Schema migrations must be planned for existing resources.blocks column (e.g., text or json) to relevant tables.Block classes for custom types (e.g., TextBlock, MediaBlock).BlocksInput:
use Skyraptor\FilamentBlocksBuilder\Forms\Components\BlocksInput;
BlocksInput::make('content')
->blocks([
TextBlock::class,
MediaBlock::class,
]);
@cache directives), but dynamic blocks (e.g., user-specific) require careful invalidation.skyraptor/filament-blocks-builder for updates; test thoroughly before upgrading.replace or conflict directives).jsonb in PostgreSQL).blocks column could break rendering. Validate input and use accessors/mutators:
protected function getBlocksAttribute($value) {
return json_decode($value, true) ?? [];
}
How can I help you explore Laravel packages today?