Caffeinated\Modules\Console\Commands\ModuleMigrateRollbackCommand::getMigrationPaths PHP Method

getMigrationPaths() protected method

Get all of the migration paths.
protected getMigrationPaths ( ) : array
return array
    protected function getMigrationPaths()
    {
        $slug = $this->argument('slug');
        $paths = [];
        if ($slug) {
            $paths[] = module_path($slug, 'Database/Migrations');
        } else {
            foreach ($this->module->all() as $module) {
                $paths[] = module_path($module['slug'], 'Database/Migrations');
            }
        }
        return $paths;
    }