
Fake markdown and rich editor content for demos and tests
Fluent fakers generate valid Markdown and TipTap-style rich content (links, mentions, merge tags, custom blocks, attachments) that respect a RichContentAttribute’s real config and storage format.
E.g.: Seed blog posts with realistic editor content instead of lorem-only strings:
'content' => fake()
->filamentRichContent()
->heading()
->paragraphs(3)
->toHtml(),
'body' => fake()
->filamentMarkdown()
->article(depth: 2)
->toString(),Markdown methods:
heading()paragraphs()bulletList()orderedList()blockquote()codeBlock()horizontalRule()hardBreak()table()image()
Rich Editor methods:
heading()paragraphs()lead()bulletList()orderedList()blockquote()codeBlock()horizontalRule()table()details()grid()image()for an image with a URLfileAttachment()for an existing image ID managed by a file attachment provider