migrate:refresh

Reset and re-run all migrations

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
  • seed - Indicates if the seed task should be re-run Optional
  • seeder - The class name of the root seeder Optional
  • step - The number of migrations to be reverted & re-run Optional
php artisan migrate:refresh [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--seed] [--seeder [SEEDER]] [--step [STEP]]