Looking to hire Laravel developers? Try LaraJobs

laravel-migration-assistant maintained by litovchenko

Last update
2025/06/04 22:28 (dev-master)
License
Downloads
14

Comments
comments powered by Disqus

Migration assistant

$ composer require iv-litovchenko/laravel-migration-assistant
$ composer require iv-litovchenko/laravel-migration-assistant --ignore-platform-reqs
$ php artisan massist

Watch the video Video presentation on YouTube

Preview

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');
}

});