/** * Execute the console command. * * @return null|int */ protected function fire() { $toRun = $this->migrator->getMigrationsToRun(); if (!empty($toRun)) { foreach ($toRun as $migration) { $this->migrator->runMigration($migration); $this->message("<info>Migrated:</info> {$migration}.php"); } } else { $this->info('Nothing to migrate'); } }