migrate:rollback

Rollback the last database migration

Options

  • batch - The batch of migrations (identified by their batch number) to be reverted Required
  • 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
  • pretend - Dump the SQL queries that would be run Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • step - The number of migrations to be reverted Optional
php artisan migrate:rollback [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend] [--step [STEP]] [--batch BATCH]