In your character search you are search withTrashed() but on delete, you are doing it without withTrashed().. Why? Eloquent can't delete something that's already soft deleted unless you also include them as deletable.
CedNet said:
In your character search you are search withTrashed() but on delete, you are doing it without withTrashed().. Why? Eloquent can't delete something that's already soft deleted unless you also include them as deletable. What?
When I search a character for deletion, it is not already deleted, so I do not include the trashed. When I search for undeletion, I just want the already softdeleted.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community