laravel-shift/factory-generator
Generate Laravel model factories automatically from your existing database schema. This Laravel Shift package inspects table columns and writes realistic Faker-based definitions, saving hours when adding tests or seed data to legacy applications.
Consider adoption when:
Look elsewhere when:
For executives: This is a free, development-only utility that generates test fixtures automatically from our existing database structure. It compresses the slowest, least differentiated part of a testing initiative — writing boilerplate setup code — into a single command, letting the team reach meaningful test coverage sooner and at effectively no procurement or runtime risk. The v2.3 release shows the maintainer is actively tracking new Laravel versions, so the tool is not abandoned.
For engineering: laravel-shift/factory-generator reverse-engineers your tables and models into factories. Add it as a require-dev dependency, run the generator, then review and harden the output. v2.3 is a maintenance release: added Laravel 13.x compatibility (PR #36), nothing else — no breaking changes, no deprecations, so an upgrade from v2.2 is a no-op beyond the version constraint. Treat generated factories as a one-time scaffold committed to the repo and owned thereafter; the package is not a runtime or production dependency, and removing it later costs nothing.
How can I help you explore Laravel packages today?