Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Statamic Bard Mutator

Statamic Bard Mutator Laravel Package

jacksleight/statamic-bard-mutator

Statamic Bard Mutator lets you transform Bard field content before it's rendered. Define mutators to modify ProseMirror nodes and marks, adding attributes, rewriting links, or adjusting markup, so rich text output stays clean and consistent without custom fieldtype work.

View on GitHub
Deep Wiki
Context7

Statamic Bard Mutator adds a composable mutation layer to Statamic's Bard, Markdown, and Replicator fields, letting you programmatically transform field values instead of wrestling with them in templates. You register mutator classes on a field and implement methods for the node types you want to change—paragraph, heading, link, set, and so on—each receiving the node array and returning the modified version.

  • Attach mutators to individual fields via config
  • Target specific node types with dedicated methods
  • Mutate on render or on save
  • Recursively processes nested sets and Bard content
  • Clean, testable PHP classes instead of template logic
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections