From 8fadc3bbd3496acae14dfcd09f4807d7d675f158 Mon Sep 17 00:00:00 2001 From: Shea Lewis Date: Mon, 29 Feb 2016 20:54:06 -0800 Subject: [PATCH] Clean up --- src/Console/Commands/ModuleMigrateCommand.php | 2 +- src/Console/Commands/ModuleSeedCommand.php | 2 +- src/Console/Generators/MakeControllerCommand.php | 2 +- src/Console/Generators/MakeRequestCommand.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Commands/ModuleMigrateCommand.php b/src/Console/Commands/ModuleMigrateCommand.php index 6c62a888..565dd09b 100644 --- a/src/Console/Commands/ModuleMigrateCommand.php +++ b/src/Console/Commands/ModuleMigrateCommand.php @@ -63,7 +63,7 @@ public function fire() $this->prepareDatabase(); if (! empty($this->argument('slug'))) { - $module = $this->module->getProperties($this->argument('slug')); + $module = $this->module->where('slug', $this->argument('slug'))->first(); if ($this->module->isEnabled($module['slug'])) { return $this->migrate($module['slug']); diff --git a/src/Console/Commands/ModuleSeedCommand.php b/src/Console/Commands/ModuleSeedCommand.php index 00f08857..6b0c3a98 100644 --- a/src/Console/Commands/ModuleSeedCommand.php +++ b/src/Console/Commands/ModuleSeedCommand.php @@ -81,7 +81,7 @@ public function fire() */ protected function seed($slug) { - $module = $this->module->getProperties($slug); + $module = $this->module->where('slug', $slug)->first(); $params = []; $namespacePath = $this->module->getNamespace(); $rootSeeder = $module['namespace'].'DatabaseSeeder'; diff --git a/src/Console/Generators/MakeControllerCommand.php b/src/Console/Generators/MakeControllerCommand.php index 3ec2d62a..5a1c292f 100644 --- a/src/Console/Generators/MakeControllerCommand.php +++ b/src/Console/Generators/MakeControllerCommand.php @@ -55,7 +55,7 @@ public function fire() $this->container['className'] = $this->argument('name'); if ($this->module->exists($this->container['slug'])) { - $this->container['module'] = $this->module->getProperties($this->container['slug']); + $this->container['module'] = $this->module->where('slug', $this->container['slug'])->first(); $this->makeFile(); diff --git a/src/Console/Generators/MakeRequestCommand.php b/src/Console/Generators/MakeRequestCommand.php index 0221949d..f08a3f38 100644 --- a/src/Console/Generators/MakeRequestCommand.php +++ b/src/Console/Generators/MakeRequestCommand.php @@ -55,7 +55,7 @@ public function fire() $this->container['className'] = $this->argument('name'); if ($this->module->exists($this->container['slug'])) { - $this->container['module'] = $this->module->getProperties($this->container['slug']); + $this->container['module'] = $this->module->where('slug', $this->container['slug'])->first(); $this->makeFile();