aw codes icon logo
Docs Hub

Search across every project.

Content Faker Switch project

Generate fake Markdown, HTML, and rich editor content for Laravel factories, seeders, tests, and previews.

1.x Current

On this page

Content Faker

Content Faker generates realistic fake Markdown, HTML and rich editor content — for model factories, database seeders, rich text previews, documentation examples, renderer tests, CMS demos and UI screenshots.

Where a plain fake()->paragraph() gives you flat prose, these fakers produce structured documents: headings, lists, tables, code blocks, callouts and inline formatting, in the shape a real editor would have written.

The three generators

MarkdownFaker
HtmlFaker
└── RichEditorFaker

MarkdownFaker and HtmlFaker are independent. RichEditorFaker extends HtmlFaker, so it has everything HTML has plus editor-specific blocks.

Note

RichEditorFaker produces editor-friendly HTML only. It does not require Filament, Tiptap, ProseMirror, Livewire or any editor package — the Filament block helpers are placeholders in the output, nothing more.

Requirements

  • PHP 8.3 or later
  • fakerphp/faker and illuminate/support

It is Laravel-friendly and works outside a full Laravel application where practical.

Where to go next

  • Installation — install the package and publish its config.
  • Usage — the fluent API, presets, factory examples and configuration.
  • Generators — what each of the three adds.