'The seeder name to run', ]; /** * the Command's Options * * @var array */ protected $options = []; /** * Runs all of the migrations in reverse order, until they have * all been un-applied. * * @param array $params */ public function run(array $params = []) { $seeder = new Seeder(new \Config\Database()); $seedName = array_shift($params); if (empty($seedName)) { $seedName = CLI::prompt(lang('Migrations.migSeeder'), 'DatabaseSeeder'); } if (empty($seedName)) { CLI::error(lang('Migrations.migMissingSeeder')); return; } try { $seeder->call($seedName); } catch (\Exception $e) { $this->showError($e); } } }