Artisan.page

migrate

Run the database migrations

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

seedOptional

Indicates if the seed task should be re-run

stepOptional

Force the migrations to be run so they can be rolled back individually