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.
--table-filename[=TABLE-FILENAME]
The --table-filename option allows you to define the filename pattern for table migrations.
By default, the pattern is [datetime]_create_[name]_table.php.
php artisan migrate:generate --table-filename="[datetime]_create_mysql_[name]_table.php"
Will generate the migration files with the specified pattern:
2024_10_08_083231_create_mysql_comments_table.php
2024_10_08_083231_create_mysql_users_table.php
--table-filename, --view-filename, --proc-filename, and --fk-filename share the similar usage and purpose.
How can I help you explore Laravel packages today?