DWQA QuestionsCategory: LaravelHow to generate migration from existing table in laravel ?
kandy asked 5 years ago

Laravel 5 installation
The recommended way to install this is through composer:

composer require --dev "xethron/migrations-generator"

Edit config/app.php and add this to providers section:


Use this artisan command for single table migration

php artisan migrate:generate table1

For more than one table
php artisan migrate:generate table1, table1, table1 
For entire table migration run following
php artisan migrate:generate