mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Eager Load User Mods
This commit is contained in:
parent
319e5e65e9
commit
1127f2b9df
@ -17,6 +17,11 @@ class UserController extends Controller
|
||||
->firstOrFail();
|
||||
|
||||
$mods = $user->mods()
|
||||
->with([
|
||||
'users',
|
||||
'latestVersion',
|
||||
'latestVersion.latestSptVersion',
|
||||
])
|
||||
->orderByDesc('created_at')
|
||||
->paginate(10)
|
||||
->fragment('mods');
|
||||
|
Loading…
x
Reference in New Issue
Block a user