Artisan.page

migrate:reset

Rollback all database migrations

Terminal
php artisan migrate:reset [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend]

Options

databaseOptional

The database connection to use

forceOptional

Force the operation to run when in production

pathOptional

The path(s) to the migrations files to be executed

pretendOptional

Dump the SQL queries that would be run

realpathOptional

Indicate any provided migration file paths are pre-resolved absolute paths