Skip to content

Commit

Permalink
Fix #80
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Jul 6, 2015
1 parent 94cab99 commit e84f03e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Caffeinated\Modules\Modules;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

Expand Down Expand Up @@ -44,7 +43,7 @@ public function __construct(Modules $module)
public function fire()
{
$module = $this->argument('module');
$moduleName = Str::studly($module);
$moduleName = studly_case($module);

if (isset($module)) {
if (! $this->module->exists($module)) {
Expand All @@ -62,7 +61,7 @@ public function fire()
if ($this->option('force')) {
$modules = $this->module->all();
} else {
$modules = $this->module->getByEnabled();
$modules = $this->module->enabled();
}

foreach ($modules as $module) {
Expand All @@ -80,7 +79,7 @@ public function fire()
protected function seed($module)
{
$params = array();
$moduleName = Str::studly($module);
$moduleName = studly_case($module);
$namespace = $this->module->getNamespace();
$rootSeeder = $moduleName.'DatabaseSeeder';
$fullPath = $namespace.$moduleName.'\Database\Seeds\\'.$rootSeeder;
Expand Down

0 comments on commit e84f03e

Please sign in to comment.