I have a controller where I am taking an uploaded CSV (which can go up to 5-6MB in size), and I have a transaction running where the CSV gets parsed by phpleague/csv
, converted into an associative array (from an iterator), chunked, and processed/inserted in a table that has a unique constraint on four columns.
What would be the best way to check for or catch unique exceptions?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community