Skip to content

Commit

Permalink
Merge pull request laravel#8850 from JamesForks/migrate-refresh-seed-…
Browse files Browse the repository at this point in the history
…force

[5.0] Force seed on refresh command, if --force is supplied
  • Loading branch information
taylorotwell committed May 22, 2015
2 parents 14064d0 + da12367 commit 2560a95
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ protected function runSeeder($database)
{
$class = $this->option('seeder') ?: 'DatabaseSeeder';

$this->call('db:seed', array('--database' => $database, '--class' => $class));
$force = $this->input->getOption('force');

$this->call('db:seed', array(
'--database' => $database, '--class' => $class, '--force' => $force,
));
}

/**
Expand Down

0 comments on commit 2560a95

Please sign in to comment.