Create seed using csv file

Hi guys, there is a way I can use seeds to store data from a csv file?

hi @rodolphonetto

I think you can use some librairies like :

and easly create data with Lucid.

I don’t have examples for that but I think your can do it easly.

Don’t hesitate if you need help :slight_smile:

1 Like

mb question is about how to copy csv files to build folder in adonis 5 ?

hi @protzi

You can configure your .adonisrc.json file :

"metaFiles": [

csv files in data folder will be automatically copied to build folder


Thanks, I’ll do that way :slight_smile:

1 Like