tarasovych / csvartisan
Package for working with CSV files
dev-master
2019-01-13 20:18 UTC
Requires
- php: >=7.0
- laravel/framework: >=5.5
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
- 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 hasname
andemail
fillable fields, your csv file must have "name,email" at the header row.
CSV example. - Execute
php artisan csv:import
. - Guide the dialog.