The problem was there, because of the trashedFilter, it's applied automatically and it excludes the the trashed records by default. When I get ride of it, things work perfectly as expected.
Thank you so much about your concern, but I already tried this solution too and nothing worked. the strange thing is that my code was working correctlly on the date mentionned above, but lately it dosn't work.
I tried several solutions, but the issue still persists. Isn'it something about the core or new update? Because that was working before on January 24th 2025 !?
I also replaced the query () by this
->modifyQueryUsing(fn (Builder $query) => $query->withoutGlobalScopes([SoftDeletingScope::class]) but still not working
Actually I have another local scope on my model "scopeVisibleToUser" and I'm using it on the table query, so I can personalize the data display of each user.
Here is the code of the table: