I am sending to my controller a matrix with more than 1000 IDs (2,540), after executing the destroy method of the medelo, this is working perfectly when processing less than 1000 records, above this the records are not erased, leaving records. I'm using softdelete in this model, why does it partially delete the records, leaving the residue above 1000 records?
This is not a full proof solution but this is a patch like divide your array list in chunks of 1000 using array_chunk() than write a for loop logic to execute the number of array list which you get from array_chunk() and call destroy method for them. I hope this is a quick fix till you install any debuggar and do the debugging.