public static function getModels(string $connectionManager = 'default', bool $excludePhinxlog = true): array
    {
        $result = [];
        $tables = ConnectionManager::get($connectionManager)->getSchemaCollection()->listTables();

        if (empty($tables)) {
            return $result;
        }

        foreach ($tables as $table) {
            if ($excludePhinxlog && preg_match('/phinxlog/', $table)) {
                continue;
            }

            $result[$table] = Inflector::humanize($table);
        }

        return $result;
    }