#Error or delay in deleting models with Eloquent
8 messages · Page 1 of 1 (latest)
could you show me real quick your payment model?
Thanks for the answer.
But I already found the problem.
The problem was that the application was duplicating some records, meaning that when deleted, the old record would still remain.
you mean softDeletes?
Sorry, I thought I could delete the post, but that just deleted the error message.
Old message:
Hi.
I have code that basically finds a model, deletes it and finds other models of the same type.
The problem is that after deleting the model, sometimes the deleted model is returned in the queried list._
am confused, but am glad you found the solution
I used create instead of updateOrCreate.
I also didn't have the column as unique in the database.