| @@ 37-54 (lines=18) @@ | ||
| 34 | * |
|
| 35 | * @return mixed |
|
| 36 | */ |
|
| 37 | public function handle() |
|
| 38 | { |
|
| 39 | $this->module = $this->laravel['modules']; |
|
| 40 | ||
| 41 | $name = $this->argument('module'); |
|
| 42 | ||
| 43 | if ($name) { |
|
| 44 | $module = $this->module->findOrFail($name); |
|
| 45 | ||
| 46 | return $this->migrate($module); |
|
| 47 | } |
|
| 48 | ||
| 49 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
|
| 50 | $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 51 | ||
| 52 | $this->migrate($module); |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Run the migration from the specified module. |
|
| @@ 37-52 (lines=16) @@ | ||
| 34 | * |
|
| 35 | * @return mixed |
|
| 36 | */ |
|
| 37 | public function handle() |
|
| 38 | { |
|
| 39 | $this->module = $this->laravel['modules']; |
|
| 40 | ||
| 41 | $name = $this->argument('module'); |
|
| 42 | ||
| 43 | if ($name) { |
|
| 44 | $module = $this->module->findOrFail($name); |
|
| 45 | return $this->migrateStatus($module); |
|
| 46 | } |
|
| 47 | ||
| 48 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
|
| 49 | $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 50 | $this->migrateStatus($module); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * Run the migration from the specified module. |
|