Artisan.page

migrate:refresh

Reset and re-run all migrations

Terminal
php artisan migrate:refresh [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--seed] [--seeder [SEEDER]] [--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

realpathOptional

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

seedOptional

Indicates if the seed task should be re-run

seederOptional

The class name of the root seeder

stepOptional

The number of migrations to be reverted & re-run