Adminix Documentation Help

Text

TextModule renders static content inside Adminix pages or inside another module such as PanelModule.

use AlexKudrya\Adminix\Modules\Module; Module::text() ->name('import-note') ->format('markdown') ->body('Runs `php artisan import:run`. **Review data first.**');

Formats

  • format('text') escapes text and preserves line breaks. This is the default.

  • format('markdown') renders the compact Adminix-safe markdown subset: code, links, bold, italic, and line breaks.

  • format('html') renders trusted HTML from PHP configuration.

Use html only for trusted developer-authored content. Do not pass request data or database content to format('html') unless the application sanitizes it first.

Configuration

  • name() is required and must be unique on the page.

  • body() is the rendered content.

  • Module::text() returns a blank text module.

  • TextModule::html($name, $body) and TextModule::markdown($name, $body) are short constructors.

Last modified: 23 June 2026