How to automatically generate Laravel Migration file from existing DB

Sep 5, 2020 PHP migration Laravel artisan

oscarafdev / migrations-generator

Introduction

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

How to use

APP_ENV = development php artisan migrate: generate
APP_ENV = development php artisan migrate: generate --tables = "user, password_resets"
APP_ENV = development php artisan migrate: generate --ignore = "users, password_resets"