refactor: include deleted users in tips and gifts user relations

There is no desire to hide soft deleted users from gifts and tips.
This commit is contained in:
Roardom
2025-09-20 19:17:07 +00:00
parent b11d41269b
commit 876bd5521a
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ class GiftController extends Controller
return view('user.gift.index', [
'user' => $user,
'gifts' => Gift::with([
'sender' => fn ($query) => $query->withTrashed()->with('group'),
'recipient' => fn ($query) => $query->withTrashed()->with('group'),
'sender.group',
'recipient.group',
])
->where('sender_id', '=', $user->id)
->orWhere('recipient_id', '=', $user->id)