Skip to content

Commit b108895

Browse files
committed
do not extend with packages seeder if option does not exist
1 parent 5be85da commit b108895

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Illuminate/Database/Console/Seeds/SeedCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ protected function getSeeder()
6464
$class = 'DatabaseSeeder';
6565
}
6666

67+
if (! $this->input->getOption('rollback') === true) {
68+
return $this->laravel->make($class)
69+
->setContainer($this->laravel)
70+
->setCommand($this);
71+
}
72+
6773
//Create a temporary file which will extend the desired class that we need to invoke.
6874
$tempClassName = $class . 'ExtendsRollback';
6975
if(str_contains($tempClassName, '\\')) {

0 commit comments

Comments
 (0)