Laratrust\MigrationCommand::alreadyExistingMigrations PHP Method

alreadyExistingMigrations() protected method

Check if there is another migration with the same suffix.
protected alreadyExistingMigrations ( ) : array
return array
    protected function alreadyExistingMigrations()
    {
        $matchingFiles = glob($this->getMigrationPath('*'));
        return array_map(function ($path) {
            return basename($path);
        }, $matchingFiles);
    }