You could create an eloquent model that represents the csv data, covert the collection to an array and create a new instance of the model using the array data.
That's actually very close to what I did after playing around. I just looped through the array and matched the keys with the table objects, and it seems to work well enough. Hopefully I won't have any memory issues, but that's for another topic.
Thank you very much for your input KevinCreel.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community