Skip to content

Tarasovych/CSVArtisan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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.