Artisan.page

migrate:rollback

Rollback the last database migration

Terminal
php artisan migrate:rollback [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend] [--step [STEP]]

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

stepOptional

The number of migrations to be reverted