/** * Rollback migration from the specified module. * * @param $module */ public function reset($module) { if (is_string($module)) { $module = $this->laravel['modules']->findOrFail($module); } $migrator = new Migrator($module); $migrated = $migrator->reset(); if (count($migrated)) { foreach ($migrated as $migration) { $this->line("Rollback: <info>{$migration}</info>"); } return; } $this->comment('Nothing to rollback.'); }