kitloong/laravel-migrations-generator
Generate Laravel migration files from an existing database schema, including columns, indexes, and foreign keys. Works with MariaDB/MySQL, PostgreSQL, SQL Server, and SQLite. Generate all tables or target/ignore specific tables via Artisan.
Generate Laravel Migrations from an existing database, including indexes and foreign keys!
Laravel Migrations Generator supports all five Laravel first-party support databases:
The recommended way to install this is through composer:
composer require --dev kitloong/laravel-migrations-generator
| Laravel | Version |
|---|---|
| 12.x | 7.x |
| 11.x | 7.x |
| >= 10.43.x | 7.x |
| 10.x | <= 10.42.x | 6.x |
| 9.x | 6.x |
| 8.x | 6.x |
| 7.x | 6.x |
| 6.x | 6.x |
| 5.8.x | 6.x |
| 5.7.x | 6.x |
| 5.6.x | 6.x |
| <= 5.5.x | https://github.com/Xethron/migrations-generator |
Laravel will automatically register service provider for you.
Auto-discovery is not available in Lumen, you need some modification on bootstrap/app.php.
Uncomment the following line.
$app->withFacades();
Add following line into the Register Service Providers section.
$app->register(\KitLoong\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
How can I help you explore Laravel packages today?