Commands.app

php artisan migrate:fresh

Database

Drop all tables and re-run all migrations

Options & Flags
Available options for this command
--seed

Seed the database after migrating

Examples
Common usage examples

Fresh migration (drops all tables)

php artisan migrate:fresh

Fresh migration with seeding

php artisan migrate:fresh --seed
Notes
  • WARNING: Drops ALL tables, including non-migration tables
  • Use in development only
Related Commands
You might also find these useful