composer require awkwardideas/migrator
/*
* Package Service Providers...
*/
AwkwardIdeas\Migrator\MigratorServiceProvider::class,
Command line actions are done via artisan. The host, username, password from the .env file are used for making the connection.
Removes all migrations files from the migrations folder
Truncates the provided database.
--database= Database to truncate --force Bypass confirmations
Combination of Clean and Truncate
Options:
--database= Database to truncate --force Bypass confirmations
Create migration files using the database information in .env
Options:
--from= Database to migrate from --force Bypass confirmations
Create migration files using the database information in .env and run php artisan migrate
Options:
--from= Database to migrate from --to= Database to migrate to (for truncation) --force Bypass confirmations