Hello,
If I'm not mistaken, SoftDelete with deleted_at value does not work with all query. All items returned ...
I use "use SoftDeletes" in my model. And delete method to remove item.
any updates ? Were you able to solve your issue?
one thing i noticed, by watching the logs (query), it uses the alias or collection name together with the deleted_at, which generally a non-existent field (e.g. my_collection.deleted_at vs just deleted_at) in that collection
i found out the issue. this happens when you use SoftDeletes trait from Laravel, not from this library. so it should be from Jenssegers\Mongodb\Eloquent\SoftDeletes.
Most helpful comment
i found out the issue. this happens when you
useSoftDeletestrait from Laravel, not from this library. so it should be fromJenssegers\Mongodb\Eloquent\SoftDeletes.