Skip to content
Docent Docs

Getting Started

Installation

Install Docent and get a documentation site running at /docs.

Docent is a Composer package. Installing it takes one require and one command.

Requirements

  • PHP 8.3 or newer

  • Laravel 12 or 13

Install the package

bash
composer require stechstudio/laravel-docent

Run the installer

bash
php artisan docent:install

docent:install publishes config/docent.php and scaffolds a starter resources/docs/index.md and resources/docs/getting-started/introduction.md. It's idempotent, so feel free to run it again after an upgrade; it never overwrites a file that already exists.

Visit your docs

Start your app and open /docs. That's it. You now have a searchable documentation site reading Markdown from resources/docs. The installer sets up one site, keyed docs in config; add more entries later if you ever need multiple sites.

Next, walk through configuration to point the route where you want it and lock things down if your docs are private. Then learn how to write pages.