rjacobsen/eloquent-model-generator
Generate Eloquent models directly from your database schema. This Laravel package inspects existing tables and scaffolds model classes with fillable fields and column metadata, cutting boilerplate when working with legacy or evolving databases.
$fillable/$guarded, casts, table naming, and timestamps will need correction.Look elsewhere when:
composer.json.reliese/laravel) or a small in-house script over doctrine/dbal/schema:dump introspection that you own.For executives: This is not a strategic dependency — it is a disposable accelerator we can use to de-risk and size a legacy replatform. For roughly half an engineer-day, we get a concrete inventory of how much model scaffolding is automatable, which sharpens the estimate for the migration roadmap before we commit headcount. The cost is bounded and the risk is contained by running it in a sandbox and discarding the output. Recommendation: fund a timeboxed spike, not adoption.
For engineering: Read-only schema introspection that emits Eloquent model stubs. Expect to fix relations, fillable/guarded, casts, and naming; expect no soft deletes, observers, policies, or domain behavior. Treat output as a starting diff, not a commit. The package targets Laravel 5 and has no adoption footprint, so it does not go in composer.json — vendor or fork it for the duration of the effort, or write a ~200-line in-house generator we control. If we need this on an ongoing basis, we evaluate a maintained alternative instead.
How can I help you explore Laravel packages today?