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.
--with-has-table
Checks for the existence of a table using the Schema::hasTable method before creating it.
php artisan migrate:generate --with-has-table
Will generate:
if (!Schema::hasTable('users')) {
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
...
});
}
How can I help you explore Laravel packages today?