I built a laravel app that reads excel files as a collection
using laravel-excel
and store the data into the database after looping over the result, each row represents one model so inside the loop I create a new model, assign the attributes and save the model and so on till the rows are finished.
This technique works well when I read small excel files (less than 2000 rows) but when I deal with large excel files (13000 rows or more) the app starting to crash so I set the max_execution_time=300
in php.ini
but this also didn't help.
Any idea or technique to make this works.
Thanx