litovchenko/laravel-migration-assistant

v1.0.0 2022-09-21 08:22 UTC

This package is auto-updated.

Last update: 2025-06-04 20:28:58 UTC


README

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

});