PHPackages                             rakib01/laravel-model-docs-md - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rakib01/laravel-model-docs-md

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rakib01/laravel-model-docs-md
=============================

Generate Markdown documentation for all Eloquent models in Laravel.

v1.0.2(4mo ago)201MITPHPPHP ^8.1

Since Nov 1Pushed 4mo agoCompare

[ Source](https://github.com/Rakib01/laravel-model-docs-md)[ Packagist](https://packagist.org/packages/rakib01/laravel-model-docs-md)[ Docs](https://github.com/Rakib01/laravel-model-docs-md)[ RSS](/packages/rakib01-laravel-model-docs-md/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

📘 Laravel Model Docs MD
=======================

[](#-laravel-model-docs-md)

A Laravel package that automatically generates **Model Documentation in Markdown format (.md)**. Perfect for documenting your application's Eloquent models — their attributes, relationships, casts, and more.

---

🚀 Features
----------

[](#-features)

- 📄 Generate Markdown documentation for all Eloquent models in one file
- ⚙️ Configurable output directory and formatting
- 🧠 Detects attributes, relationships, casts, fillable, hidden, and appended fields
- 🕹️ Simple Artisan command
- 🧩 Fully open-source and easy to extend

---

🧪 Installation
--------------

[](#-installation)

Require the package via Composer:

```
composer require rakib01/laravel-model-docs-md
```

---

⚙️ Publish Configuration
------------------------

[](#️-publish-configuration)

You can publish the configuration file using:

```
php artisan vendor:publish --provider="Rakib01\\LaravelModelDocsMd\\ModelDocsMdServiceProvider" --tag=config
```

This will publish a config file at:

```
config/modeldocsmd.php

```

---

🧾 Generate Model Documentation
------------------------------

[](#-generate-model-documentation)

Once installed, simply run:

```
php artisan model-docs-md:generate
```

This command will inspect all models in your app/Models directory and generate a single file named:

storage/app/model-docs.md

Each model will be represented as a section in the file, similar to this:

🧩 App\\Models\\User
-------------------

[](#-appmodelsuser)

**Table:** `users`

**Columns:**

NameTypeCastidbigintintnamevarchar-emailvarchar-passwordvarchar-**Fillable:** name, email, password
**Hidden:** password, remember\_token
**Appends:** is\_verified

**Relationships:**

- **posts** → Post

All models will be appended sequentially in this same Markdown file — allowing you to have a complete model documentation in one place.

🛠️ Requirements
---------------

[](#️-requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 12.x or 11.x, 10.x

---

🤝 Contributing
--------------

[](#-contributing)

Pull requests are welcome! If you find a bug or have a feature request, please open an issue on [GitHub Issues](https://github.com/Rakib01/laravel-model-docs-md/issues).

---

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the **MIT license**.

---

**Created with ❤️ by [Rakibul Hasan](https://github.com/Rakib01)**

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance74

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

3

Last Release

140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43177ce6342583992a002a82586ab7cde7515a52bb85090a76f89c06db8551e9?d=identicon)[rakib01](/maintainers/rakib01)

---

Top Contributors

[![Rakib01](https://avatars.githubusercontent.com/u/33548111?v=4)](https://github.com/Rakib01 "Rakib01 (6 commits)")

### Embed Badge

![Health badge](/badges/rakib01-laravel-model-docs-md/health.svg)

```
[![Health](https://phpackages.com/badges/rakib01-laravel-model-docs-md/health.svg)](https://phpackages.com/packages/rakib01-laravel-model-docs-md)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
