Skip to content

Commit

Permalink
Merge pull request #209 from Venko007/master
Browse files Browse the repository at this point in the history
first() in commands migration
  • Loading branch information
kaidesu authored Jul 13, 2016
2 parents e8f3588 + a898393 commit acc561f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/ModuleMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function fire()
$this->prepareDatabase();

if (!empty($this->argument('slug'))) {
$module = $this->module->where('slug', $this->argument('slug'))->first();
$module = $this->module->where('slug', $this->argument('slug'));

if ($this->module->isEnabled($module['slug'])) {
return $this->migrate($module['slug']);
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/ModuleSeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function fire()
*/
protected function seed($slug)
{
$module = $this->module->where('slug', $slug)->first();
$module = $this->module->where('slug', $slug);
$params = [];
$namespacePath = $this->module->getNamespace();
$rootSeeder = $module['namespace'].'DatabaseSeeder';
Expand Down

0 comments on commit acc561f

Please sign in to comment.