CSV
This example shows a connection to a CSV file. It will automatically search for and create columns unless mapColumns() is specified
use Andach\ExtractAndTransform\Facades\ExtractAndTransform;
$path = storage_path('app/products.csv');
$source = ExtractAndTransform::createSource('CSV Products', 'csv', ['path' => $path]);
$source->sync($path)
->withStrategy('full_refresh')
->mapColumns(['id' => 'remote_id', 'name' => 'product_name']) // Optional
->toTable('products_v1') // Optional
->run();