public function log($file, $batch) { $record = ['mapping' => $file, 'batch' => $batch]; $this->table()->insert($record); }
/** * Run the given mapping file. * * @param $file * @param $batch */ public function runMap($file, $batch) { $mapping = $this->resolve($file); $mapping->map(); $this->repository->log($file, $batch); $this->note('<info>Mapped:</info> ' . $file); }