migrate:rollback

Rollback the last database migration

Options

  • database - The database connection to use Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • pretend - Dump the SQL queries that would be run Optional
  • step - The number of migrations to be reverted Optional
  • batch - The batch of migrations (identified by their batch number) to be reverted Required
php artisan migrate:rollback [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend] [--step [STEP]] [--batch BATCH]