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

Laravel Modelschema Laravel Package

grazulex/laravel-modelschema

Laravel ModelSchema is a lightweight package that inspects your Eloquent models and converts them into database schema definitions, so you can generate migrations, keep models and tables in sync, and document your data layer from a single source of truth.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Schema-first / spec-driven scaffolding: The package exposes a GenerationService that turns json/yaml fragments into generated components (e.g., models and related boilerplate). This directly supports decisions about whether to standardize on a spec-driven generation pipeline instead of hand-written scaffolding.
  • Build vs. buy for internal generators: If your team has (or is considering) an in-house Laravel scaffolding/generator tool, this package is a credible buy/borrow candidate for the generation layer, letting you invest engineering time in your schema and templates rather than plumbing.
  • Roadmap bets on developer velocity: Useful input for roadmap items like "reduce time-to-first-endpoint," "standardize model/boilerplate conventions," and "onboard new services faster." Generation from a checked-in spec is auditable and repeatable, which is attractive for platform/DX initiatives.
  • Tooling/observability decisions: v1.3.1 is a telemetry-correctness fix. Before it, generateAll() and generateModel() classified every generated component as failed in logs and metrics because success was read from a success key the generators never return; success is now inferred from the returned json/yaml fragments. Any dashboards, SLOs, or adoption scorecards built on this package's logs before v1.3.1 are wrong and must be re-baselined before you use them to justify (or kill) the initiative.
  • Use cases to validate against: CRUD-heavy back-office apps, admin panels, internal tools, and any Laravel codebase where models/resources are repetitive enough that a schema file is cheaper to maintain than the generated code. Less compelling for highly bespoke domain logic, heavy hand-tuned Eloquent behavior, or teams without a stable spec format.

When to Consider This Package

Consider adoption when:

  • Your stack is Laravel/PHP and you already have (or want) a machine-readable spec — JSON or YAML — as the source of truth for models/components.
  • A meaningful share of your work is repetitive scaffolding (models, related boilerplate) where consistency matters more than bespoke craft.
  • You need generation to be scriptable and observable — CI jobs, local bootstrap, or platform tooling that logs and measures generation runs.
  • You want a narrow, single-responsibility dependency rather than a full-blown CRUD/admin framework; the surface described here is a generation service, not a runtime framework.
  • You can pin a version and re-run generation idempotently. This is a v1.x package with an active issue tracker (the fix references issue #14), so treat it as a component you own the upgrade path for.

Look elsewhere when:

  • You need long-term API stability guarantees or vendor support/SLAs; a pre-2.0 community package with bug-fix releases implies churn.
  • Your generation needs are deeply custom (non-standard naming, complex relations, multi-tenant variations) such that you'd fork it — in that case an in-house generator or a mature framework (e.g., blueprint/schema tooling with a larger community) may cost less over 12 months.
  • You are not on Laravel, or you need generation targets beyond what its generators cover (front-end, infrastructure, non-PHP artifacts).
  • Observability is a hard requirement and you cannot upgrade: pre-1.3.1 metrics are actively misleading. If you're pinned below v1.3.1, plan the upgrade or instrument your own success detection around the return value.
  • You require a stable, documented public contract for generateAll()/generateModel() return shapes. This release shows the internal success contract was implicit and wrong; confirm the returned fragment shape is documented and covered by tests before you build automation on top of it.

How to Pitch It (Stakeholders)

For executives (one paragraph): This is a small, focused Laravel package that generates application components from a JSON/YAML spec, aimed at cutting the repetitive scaffolding work that slows down delivery of CRUD-heavy internal tools and admin surfaces. The v1.3.1 release is a low-risk bug fix with no breaking changes: it corrects the package's own success reporting, which previously logged every generation as a failure. That matters commercially because any metrics we used to judge developer productivity or generation reliability were wrong — so we should re-measure on v1.3.1 before drawing conclusions. Recommendation: run a time-boxed pilot on one CRUD-heavy service, measure time-to-first-endpoint and rework rate against the corrected telemetry, and defer any org-wide standardization decision until we have clean numbers.

For engineering leads: Adopt as a pinned dependency (^1.3.1 minimum — do not run below it, since logs and metrics are incorrect there). It is a build-time/scaffolding tool, not a runtime dependency, so blast radius is limited to generated code and CI jobs. Before committing: verify the json/yaml fragment return shape is documented and tested, confirm generation is idempotent under re-runs, and decide where generated output lives (checked in vs. build artifact). Treat the generators as a black box you wrap behind an internal script so swapping it later is a one-file change; budget a small ongoing maintenance line for version bumps.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
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