kitloong/laravel-migrations-generator
Generate Laravel migration files from an existing database, including columns, indexes, and foreign keys. Supports MariaDB, MySQL, PostgreSQL, SQL Server, and SQLite. Run artisan migrate:generate to scaffold migrations for all or selected tables.
database/migrations by consolidating tables into a single file (useful for large schemas or CI/CD pipelines).secondary DB for analytics).Adopt when:
Look elsewhere if:
For Executives: "This package cuts weeks of manual work into minutes by auto-generating Laravel migrations from any existing database. For our [legacy system modernization] or [multi-database] initiatives, it ensures consistent, auditable schema changes while reducing dev overhead by 80%. The MIT license and active maintenance make it a low-risk, high-ROI tool—ideal for accelerating our [product roadmap] without hiring additional engineers."
For Engineering: *"This solves the ‘migration generation bottleneck’—no more manually reverse-engineering tables, indexes, or foreign keys. Key benefits:
php artisan migrate:generate) replaces hours of SQL-to-Laravel translation.database/migrations clean for large schemas.For Developers: *"Need to generate migrations from an existing DB? This package does it faster and more accurately than writing them by hand. Features:
php artisan migrate:generate --tables=users,posts --squash → one file with all tables and FKs.
Pro tip: Use --with-has-table to add Schema::hasTable() checks for idempotent migrations."*How can I help you explore Laravel packages today?