mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30: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();
|
->firstOrFail();
|
||||||
|
|
||||||
$mods = $user->mods()
|
$mods = $user->mods()
|
||||||
|
->with([
|
||||||
|
'users',
|
||||||
|
'latestVersion',
|
||||||
|
'latestVersion.latestSptVersion',
|
||||||
|
])
|
||||||
->orderByDesc('created_at')
|
->orderByDesc('created_at')
|
||||||
->paginate(10)
|
->paginate(10)
|
||||||
->fragment('mods');
|
->fragment('mods');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user