Weave Code
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

Legacy Factories Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

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?

Integration Approach

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

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4