protected function getMigrationPaths()
    {
        // Here, we will check to see if a path option has been defined. If it has we will
        // use the path relative to the root of the installation folder so our database
        // migrations may be run for any customized path from within the application.
        if ($this->hasOption('path') && $this->getOption('path')) {
            return array_map(function ($path) {
                return BASE_PATH . '/' . $path;
            }, (array)$this->getOption('path'));
        }

        return array_merge(
            [$this->getMigrationPath()], $this->migrator->paths()
        );
    }