You could try to load the data from CSV directly into mysql. You could try something like :
LOAD DATA INFILE 'file.csv' INTO TABLE mytable;
You just need to use Laravel to build the query and point to that file.
Comment by Ovidiu Bădiță on "Get data from csv file in chunks and insert into database?" | Hashnode