Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquent Docs Laravel Package

sethphat/eloquent-docs

sethphat/eloquent-docs generates readable documentation for your Eloquent models, drawing details from the models themselves so your Laravel project's data layer stays easy to understand and maintain as it grows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer-experience (DX) investment prioritization. This package is a pure DX play: it reads your database schema and generates @property phpDoc blocks on Eloquent models so IDEs and static analyzers stop flagging magic attributes as undefined. The product question it answers is "how much engineering time are we losing to IDE ambiguity and typo-driven bugs on model attributes?"
  • Build vs. buy for internal tooling. It is MIT-licensed and dev-only, so "buy" (adopt) is nearly free. Use it to avoid spending sprint capacity on a bespoke schema-to-docblock generator or one-off Artisan scripting.
  • Standardization of static analysis in the roadmap. Adopting it is a concrete, low-friction step toward enforcing PHPStan/Larastan in CI. If attribute-level type errors are a recurring source of review comments or escaped bugs, this is a cheap enabler for a "static analysis gate" initiative.
  • Onboarding and knowledge-transfer decisions. Accurate model docblocks shorten time-to-first-PR for new engineers and make schema changes self-documenting in the code they already read, reducing reliance on tribal knowledge or DB spelunking.
  • Release hygiene / schema-change workflow decisions. Because output is generated, it forces a decision on when regeneration runs (pre-commit, CI check, or manual). That is a process decision worth making explicitly rather than discovering drift later.
  • Not a product differentiator. With ~53 stars, zero dependents, and a low opportunity score (14.55), treat this as a tactical dev-tooling line item with negligible strategic upside — do not let it consume roadmap narrative or architecture-review bandwidth.

When to Consider This Package

Adopt when most of the following hold:

  • The codebase is Laravel with a meaningful number of Eloquent models — the value scales with model count and attribute count; below roughly a dozen simple models the payoff is marginal.
  • The team already runs or plans to run PHPStan/Larastan or a strict IDE setup, where missing @property annotations produce real noise.
  • Migrations change frequently, making manual docblock maintenance a recurring chore engineers will otherwise skip.
  • You want a dev-only, zero-production-runtime dependency — this qualifies, which keeps security and ops review trivial.
  • You are comfortable owning a small, low-traffic package: 53 stars, 0 dependents, and a last release of May 2024 mean limited community support and a real bus-factor risk. Pin the version and be prepared to fork or replace it with a short internal script.

Look elsewhere when:

  • You already use barryvdh/laravel-ide-helper, which covers model docblocks plus facades and is dramatically more widely adopted — running both is redundant maintenance surface.
  • Your need is runtime API documentation (OpenAPI/Swagger) rather than IDE hints — evaluate Scramble or Scribe instead; this package solves a different problem.
  • Models rely heavily on accessors, casts, and computed attributes that schema-driven generation will miss, so output would be incomplete or misleading.
  • The project is small, short-lived, or not Laravel — the setup cost exceeds the benefit.
  • Your organization has a policy against low-adoption dependencies in the build chain, in which case a ~50-line internal generator is the safer call.

How to Pitch It (Stakeholders)

To executives: This is a low-cost developer-productivity tool, not a customer-facing feature. It auto-generates code documentation from the database schema so engineers get accurate autocomplete and fewer typo-class bugs in Laravel models. Cost is effectively zero — MIT license, development-only dependency, no production runtime footprint, no infrastructure change. Expected benefit is measured in engineer hours saved on onboarding and code review, not revenue. Recommendation: approve as a small DX line item; it should not appear on the customer roadmap.

To engineering leadership: It removes a persistent annoyance — undefined-attribute warnings and stale model docblocks — with a single dev dependency and a regeneration command. It pairs naturally with a PHPStan/Larastan rollout and gives us a defensible answer to "why is this attribute red in my IDE?" Caveat to state plainly: adoption is thin (53 stars, 0 dependents, last release May 2024), so we should pin the version, keep regeneration in CI or a pre-commit hook to prevent drift, and accept that if the package stalls we replace it with a small internal Artisan command. If laravel-ide-helper is already in the stack, we should extend that instead of adding a second tool.

One-line summary: Cheap, dev-only, reversible — approve as tactical tooling, evaluate against laravel-ide-helper first, and don't over-invest in it strategically.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle