Skip to content

Commit

Permalink
Fix the module without seed class issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil Késede committed Nov 4, 2015
1 parent 0c5ca60 commit 0cd4986
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Commands/SeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ public function fire()
continue;
}

$this->dbseed($name);
if (class_exists($this->getSeederName($name))) {
$this->dbseed($name);

$this->info("Module [$module] seeded.");
$this->info("Module [$module] seeded.");
}
}

return $this->info('All modules seeded.');
Expand Down Expand Up @@ -98,7 +100,7 @@ public function getSeederName($name)

$namespace = $this->laravel['modules']->config('namespace');

return $namespace.'\\'.$name.'\Database\Seeders\\'.$name.'DatabaseSeeder';
return $namespace.'\\'.$name.'\Database\Seeders\\'.$name.'TableSeeder';

This comment has been minimized.

Copy link
@IfnotFr

IfnotFr Nov 20, 2015

This line currently break compatibility of having a main ModuleDatabaseSeeder It should be fixed :(

}

/**
Expand Down

0 comments on commit 0cd4986

Please sign in to comment.