composer require "tarasovych/csvartisan @dev"
Package has discovery feature.
- 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.