tarasovych/csvartisan

Package for working with CSV files

dev-master 2019-01-13 20:18 UTC

This package is not auto-updated.

Last update: 2024-05-19 01:37:40 UTC


README

composer require "tarasovych/csvartisan @dev"
Package has discovery feature.

Usage

Importing csv to a model-related table

  1. Upload csv file to your Laravel app root folder.
    Note, that csv file name must be UTF-8 latin.
    CSV file must have appropriate headers.
    E. g. if your model you want import to has name and email fillable fields, your csv file must have "name,email" at the header row.
    CSV example.
  2. Execute php artisan csv:import.
  3. Guide the dialog.