Laravel Reverse Generate Migrations is a custom Laravel package that allows you to reverse generate migration files for all tables in your database, including their respective collation and charset settings. This can be useful when you want to generate migration files based on an existing database schema.
PHP Minimum Version: 7.2 Laravel Support: 6.x
To install the package, use Composer:
composer require kabir-ibi/laravel-reverse-generate-migrations
N.B: To use this package only for dev environment, use following command
composer require --dev kabir-ibi/laravel-reverse-generate-migrations
Once installed, you can run the reverse:generate-all-migrations
command to generate migration files for all tables in the database:
php artisan reverse:generate-all-migrations
The migration files will be created in the database/migrations directory, with each file prefixed with a timestamp.
There is no additional configuration required for this package. The package will use the default database connection configured in your Laravel application.
This package is open-source software licensed under the MIT license.
Contributions are welcome! If you find any issues or want to contribute enhancements, please feel free to submit a pull request.
#About the Author This package is maintained by KH MOHAIMENUL KABIR. You can contact me at [email protected].