protected function resolveMigrator(string $table): Migrator
    {
        $app = $this->app;

        if (! isset($this->migrator[$table])) {
            $respositoryClass = $this->resolver['repository'];
            $migratorClass = $this->resolver['migrator'];

            $repository = new $respositoryClass($app['db'], $table);
            $migrator = new $migratorClass($repository, $app['db'], $app['files']);

            $this->migrator[$table] = $migrator;
        }

        return $this->migrator[$table];
    }