laravel/legacy-factories
Bring back classic Laravel model factories (<=7.x) on Laravel 8+ projects. laravel/legacy-factories restores the old factory syntax for generating test and seed data, easing upgrades and maintaining legacy codebases without rewrites.
Architecture fit: The package serves as a compatibility layer for legacy closure-based factories in Laravel 8+, restoring the factory() helper without modifying core Laravel architecture. It intentionally avoids deep integration with modern factory systems, functioning as a thin shim for backward compatibility.
Integration feasibility: High for initial setup (via Composer), but repository unknown status creates uncertainty about official support and maintenance. Integration requires no code changes to existing factories, but conflicts may arise if both legacy and class-based factories coexist in the same codebase.
Technical risk: Moderate. Unknown repository implies unverified maintenance history, potential compatibility gaps with future Laravel versions, and possible security risks. The package’s reliance on deprecated patterns may introduce subtle bugs during Laravel upgrades.
Key questions: Is this package officially maintained by Laravel or a third party? What specific Laravel versions does it support (e.g., 8.x, 9.x, 10.x)? How does it handle edge cases like factory inheritance or polymorphic relationships? What is the long-term support plan given the repository’s unknown status?
Stack fit: Optimized for Laravel 8+ applications with existing closure-based factories. Best suited for projects already using legacy factory patterns where immediate refactoring is infeasible. Not recommended for greenfield projects or teams new to Laravel.
Migration path: 1) Install package as a temporary dependency, 2) Run tests to validate legacy factory behavior, 3) Prioritize high-risk tests/seeders for migration to class-based factories, 4) Gradually phase out legacy usage while
How can I help you explore Laravel packages today?