langleyfoxall/eloquent-csv-importer

Easily map CSV files to Eloquent models

v1.0.2-alpha 2018-11-15 08:33 UTC

README

Travis Status

Eloquent CSV Importer helps create and store column maps to enable the easy conversion of CSV data to Eloquent models

example-code.png

Installation

Eloquent CSV Importer can be easily installed using Composer. Just run the following command from the root of your project.

composer require langleyfoxall/eloquent-csv-importer

The service provider is to set to be auto discovered in Larave 5.5+ - in older versions you will have to manually register it in config/app.php

LangleyFoxall\EloquentCSVImporter\EloquentCSVImporterServiceProvider::class

After this, publish the vendor files to copy the CSV definitions migrations to your migrations folder.

php artisan vendor:publish

Documentation

Documentation coming soon