mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user