Skip to content

Migrate Refresh ​

Rollback then re-run all migrations for a specific module.

Command Information ​

  • Signature: modularous:migrate:refresh {module}
  • Category: Database

Arguments ​

ArgumentRequiredDescription
moduleYesThe module name to refresh (e.g. Blog)

What It Does ​

Calls modularous:migrate:rollback followed by modularous:migrate for the given module. Use during development to reset a module's schema and replay its migrations cleanly.

WARNING

This drops and recreates the module's tables. Any data in those tables will be lost.

Examples ​

bash
php artisan modularous:migrate:refresh Blog