src/Commands/MigrateCommand.php
public function handle()
    {
        $this->module = $this->laravel['modules'];

        $name = $this->argument('module');

        if ($name) {
            $module = $this->module->findOrFail($name);

            return $this->migrate($module);
        }

        foreach ($this->module->getOrdered($this->option('direction')) as $module) {
            $this->line('Running for component: <info>' . $module->getName() . '</info>');

            $this->migrate($module);
        }
    }
public function handle()
    {
        $this->module = $this->laravel['modules'];

        $name = $this->argument('module');

        if ($name) {
            $module = $this->module->findOrFail($name);

            return $this->migrate($module);
        }

        foreach ($this->module->getOrdered($this->option('direction')) as $module) {
            $this->line('Running for component: <info>' . $module->getName() . '</info>');

            $this->migrate($module);
        }
    }
Execute the console command.

@return mixed