kitloong/laravel-migrations-generator
Generate Laravel migrations from an existing database, complete with indexes and foreign keys. Supports MariaDB, MySQL, PostgreSQL, SQL Server and SQLite, with options to include, exclude or target specific tables via Artisan.
Architecture fit
kitloong/laravel-migrations-generator is a development-time Artisan tool, not a runtime dependency. It fits Laravel/Lumen projects that need to reverse-engineer an existing database into migration files.Integration feasibility
composer require --dev kitloong/laravel-migrations-generator, configure a Laravel database connection, and run php artisan migrate:generate.--connection, --tables, --ignore, --path, --squash, filename templates, and skip flags for views, procedures, foreign keys, vendor migrations, and logging.Technical risk
--tables or --ignore can produce incomplete or failing migration sets.Key questions
migrations table, skipped, or assigned a baseline batch, and how will that behave across fresh and existing environments?Stack fit
Migration path
composer.json and document the exact generation command used.--squash for a single baseline migration when the team accepts a larger review surface.--skip-log when generating reference migrations that should not alter the application’s migration ledger. Use --log-with-batch=0 only after deciding the generated set is a deliberate first baseline.php artisan migrate:fresh against an empty database, then compare the resulting schema to the source using native schema inspection or database tooling.Compatibility
Sequencing
--tables or --ignore; confirm foreign-key completeness.Maintenance
Support
Scaling
--squash when file count is operationally painful, accepting a larger diff.Failure modes
Ramp-up
How can I help you explore Laravel packages today?