laravel-migration-assistant maintained by litovchenko
Author
Last update
2025/06/04 22:28
(dev-master)
License
Downloads
14
Migration assistant
$ composer require iv-litovchenko/laravel-migration-assistant
$ composer require iv-litovchenko/laravel-migration-assistant --ignore-platform-reqs
$ php artisan massist

Route::get('/liapp', function () { $liApp = new App(); return $liApp->main(); });
Schema::table('users', static function (Blueprint $table) { $schemaManager = Schema::getConnection()->getDoctrineSchemaManager(); $indexesFound = $schemaManager->listTableIndexes('users');
if (! array_key_exists('users_email_index', $indexesFound)) {
$table->index('email', 'users_email_index');
}
});
